Conveyor always moves into the same direction?

so am trying to create a sanbox tycoon game and the first item i made is a conveyor, but for some reason the conveyor always moves into the same direction, no matter how i rotate it. here is the script

script.Parent.Velocity = script.Parent.CFrame.LookVector*script.Parent.Speed.Value
script.Parent.Speed.Changed:Connect(function()
	script.Parent.Velocity = script.Parent.CFrame.LookVector*script.Parent.Speed.Value
end)

fixed it myself, heres the new script:

script.Parent.Velocity = script.Parent.CFrame.LookVector*script.Parent.Speed.Value
script.Parent.Speed.Changed:Connect(function()
	script.Parent.Velocity = script.Parent.CFrame.LookVector*script.Parent.Speed.Value
end)
script.Parent:GetPropertyChangedSignal("Rotation"):Connect(function()
	script.Parent.Velocity = script.Parent.CFrame.LookVector*script.Parent.Speed.Value
end)
2 Likes