0 views0 copies0 likes

Directional Conveyor for Sorting Crates

Universal script

Copy it, then test it in your own Studio place.

Utilities Verified

Script code

8 lines ยท 0.2 KB
Download
local belt = workspace:WaitForChild("SortingBelt")local SPEED = 13belt.Anchored = truelocal function update()	belt.AssemblyLinearVelocity = belt.CFrame.LookVector * SPEEDendbelt:GetPropertyChangedSignal("CFrame"):Connect(update)update()

About this script

Create an anchored part named SortingBelt and put unanchored test crates directly on it. The script assigns a surface velocity along the belt's local forward direction, so rotating the part changes the travel direction. Keep the top surface reasonably grippy and adjust SPEED before building corners. Test different crate masses and check that each lands correctly at the far end.

Comments

Share what works, ask questions, or report an issue.

0

Log in to leave a comment.

No comments yet

Be the first to share your thoughts!

Raw Luau source

local belt = workspace:WaitForChild("SortingBelt")
local SPEED = 13
belt.Anchored = true
local function update()
	belt.AssemblyLinearVelocity = belt.CFrame.LookVector * SPEED
end
belt:GetPropertyChangedSignal("CFrame"):Connect(update)
update()