Dropper = game.Workspace.Dropper Catch = game.Workspace.Catch Conveyor = game.Workspace.Conveyor function SpeedOfConveyor() Conveyor.Velocity(-30, 0, 0) end script.Parent.Touched:connect(SpeedOfConveyor)
this for some reason is not working, please help
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) -- Added "part" as a parameter part.Velocity = Vector3.new(-30, 0, 0) --Instead of affecting the conveyor, you affect the part touching the conveyor -- Also, Vector3.new() was added. end script.Parent.Touched:connect(SpeedOfConveyor)
See if that works.