Utilities 5 min read

Build a Conveyor and Resetting Crate Station

Prototype a sorting workshop with directional surface movement and reusable crate feedback.

Set the belt direction in Studio

Place an anchored SortingBelt part and choose a forward axis. Assign the conveyor's surface velocity along that part's LookVector. Test an unanchored crate and rotate the belt by 90 degrees to make sure transport follows its new heading. Keep seams level and use walls where the crates need guidance.

Make the crate reusable

Keep a crate at a separate TrainingCrate station. Disable its prompt when opening begins, hide the solid box, and briefly create non-collidable pieces for the visual effect. Restore the original crate after the timer. The server owns the station, so all nearby players see the same reset.

Avoid physics surprises

Try with several test crates of different shapes. Tall parts can topple on corners and small parts can catch at seams. Move the reset station off the moving belt so its prompt stays in a predictable position.

Build a short, visible test belt

Add a long anchored part named SortingBelt and place it slightly above a plain floor. Give the belt a visible arrow or stripe so everyone can tell which direction the surface should move. Start with one box resting on the centerline and a large tray at the far end. Leave the sides clear until the basic test passes. An unanchored crate is easier to check than a complicated model with hidden joints. Start the server script only after naming the belt correctly. If the box never moves, inspect whether it is accidentally anchored or whether its bottom is resting on a nonmoving part rather than on the belt.

Derive movement from the belt orientation

The conveyor uses the belt part's forward vector, so rotating the belt changes the direction of surface movement. Keep the rate independent from the direction. Walk partway along the belt in Studio before starting the test and estimate where a loose box ought to go. Rotate the belt by ninety degrees and repeat. If the box moves toward the wrong tray, reverse the sign or update the visual arrow to reflect the part's forward direction. Avoid correcting the behavior by hard-coding a world vector. That would make the first placement work, but the next rotated copy would need a separate script change.

local forward = belt.CFrame.LookVector
belt.AssemblyLinearVelocity = forward * 13

Adapt the geometry to the crates

Test a short box, a tall box and two boxes entering together. A tall box can tip while its lower face grips the belt. Lower movement speed before raising the guard rails if tipping is frequent. Small boxes may catch at gaps between parts, in which case a continuous surface is easier to debug than several segments. For a bend, build a receiving tray that takes one section's output before passing it to another. Measure whether boxes reach the intended spot instead of judging by movement alone. If a player can stand on the line, make sure the collision layout leaves them a clear way to step off.

Place a separate crate interaction station

Set TrainingCrate on a stationary floor beside the belt. Add the linked handler and activate the prompt. The solid crate disappears briefly while a handful of lightweight fragments create a visible burst. There is one shared station state, so disable the prompt before creating the pieces. Non-collidable pieces make it less likely that a decoration interferes with passing players or boxes. Give debris a short lifetime and restore the original state after the reset timer. This is a timed presentation effect. If a crate should grant an actual reward, define the award in the server handler and decide whether each visit should grant it again.

Use two players to test concurrency

Have one player activate the crate while another sends a box down the conveyor. The belt should continue while the crate is resetting. Try using the prompt twice very quickly and see whether only one burst occurs. After the crate returns, verify that it has the original appearance and collision behavior. Run the same setup with the belt turned in a different direction. The crate shouldn't move with it accidentally. When you add more stations, consider creating a folder for the props so you can inspect and tune them by purpose. Keep the movement and station state independent, because they often need different reset rules.

Related scripts