โ† Back to all scripts

Tycoon Conveyor Belt

A moving conveyor belt that pushes parts or players. Classic tycoon mechanic.

Parts & DoorsBeginnerScript inside Conveyor Part
tycoon-conveyor-belt.lua
-- Tycoon Conveyor Belt
local conveyor  = script.Parent
local SPEED     = 20
local DIRECTION = Vector3.new(1, 0, 0)

conveyor.Touched:Connect(function(hit)
    if hit.Anchored then return end
    local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
    if humanoid then
        local root = hit.Parent:FindFirstChild("HumanoidRootPart")
        if root then root.AssemblyLinearVelocity = DIRECTION * SPEED end
        return
    end
    if hit:IsA("BasePart") then
        hit.AssemblyLinearVelocity = DIRECTION * SPEED
    end
end)
Related scripts in Parts & Doors
Kill BrickBeginner โ†’Proximity Prompt DoorIntermediate โ†’
Something broken or not working?
๐Ÿ”ง Try the AI Script Fixer โ†’