Hi I'm making a conveyor belt speed changer it can either increase or decrease the speed but for now I want it to increase the speed
so when I click the button the value changes but not the speed of the conveyor belt
the conveyor script:
local Number = game.Workspace.GameHandeler.Number.Value
while true do
script.Parent.Velocity = script.Parent.CFrame.lookVector *Number
wait(0.1)
end
the click script:
local jam = script.Parent.Number.Value
local Clicker = game.Workspace.increasebutton.increas.Clickincrease
function Clicked()
jam = jam + 10
end
Clicker.MouseClick:Connect(Clicked)
i'm using number values as my storage
I'm new to scripting so any tips would be nice!

3 comments
sorry for the late response
sorry for the late response. When your script was applied It didn't change the variable nor the speed, though thanks for trying
oh wait im just dumb sorry you're right