✓ Accepted answer
In your code, you are setting the actual conveyors velocity. That will not do anything if the conveyor is anchored. Also, I do not think it will do what you intend even if it wasn't.
One thing you have to keep in mind when using the "Touched" event is the parameter or part that will be triggering this event.
Also, you are not using the correct format to changing the velocity of something. You must try using Vector3.new()
Dropper = game.Workspace.Dropper
Catch = game.Workspace.Catch
Conveyor = game.Workspace.Conveyor
function SpeedOfConveyor(part)
part.Velocity = Vector3.new(-30, 0, 0)
end
script.Parent.Touched:connect(SpeedOfConveyor)
See if that works.
4 comments
ok, now i see what i did wrong, 1 tiny little mistake can ruin it, thank, it now works!
Yep! That is the downsie of programming and scripting. Any little mistake can ruin the entire project. Although, it is always fun trying to find the problem. Good luck
Actually, if you set an anchored brick's velocity constantly, in a loop, it will behave like a conveyor belt to any other unachored parts!
Hmm, I might have to fool around with that. That is new to me.