Why does conveyor script not work

everything is setup but it doesnt move anything and it bounces my character/whatever is on it

here is the tutorial i followed and my script

local Conveyor = {}
Conveyor.__index = Conveyor

function Conveyor.new(tycoon, instance)
	local self = setmetatable({}, Conveyor)
	self.Instance = instance
	self.Speed = instance:GetAttribute("Speed")

	return self
end

function Conveyor:Init()
	local belt = self.Instance.Belt
	belt.AssemblyLinearVelocity = belt.CFrame.LookVector * self.Speed
end

return Conveyor
2 Likes

That code looks alright enough, maybe your belt part is oriented facing upwards? Try checking the orientation / rotating it around to check. The code makes it so that whatever’s on it would be pushed towards the front of the part. If you’re not sure how to know, try turning on the direction indicator like this:
image
image

3 Likes

thanks can’t believe i didnt even try that lol

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.