I have made a textbox so u can only put numbers in it and how would i make it so you can only go up to a certain number.
Right now i have
if script.Parent.Text < 60 then
script.Parent.Text = 60
end
it returns Players.TeaWithMee.PlayerGui.RaceSelector.Menu.SliderMenu.BBox.LocalScript:1: attempt to compare string and number
how would i make it so it returns back to 60

2 comments
It returns the same error
And what i mean is if someone puts in a number above 60 in a text box i want to return back to 60 instead of a higher number