im trying to make a for loop where one of the values is the text from a texbutton gui problem is, it says forloops can only take number values is there any way to fix this? i type numbers into the text button, but it still does not work
code:
wait(1) local player = script.Parent.Parent.Parent.Parent local Mouse = player:GetMouse() script.Parent.Parent.Parent.Start.StartButton.MouseButton1Click:connect(function(click) wait(1) for i = script.Parent.Parent.Parent.Objects.Object.Position,script.Parent.Text,.1 do script.Parent.Parent.Parent.Objects.Object.Position = script.Parent.Parent.Parent.Objects.Object.Position + UDim2.new(0,0,0,i) wait(.5) end end)