I'm trying to change the speed you can click at depending on the amount of money (oofs) you have. This, however, is not working. It doesn't even do the prints.
game.Players.PlayerAdded:Connect(function()
print("hi i exist")
if oofs <= 99 then
clickSpeed.Value = 1
print(clickSpeed)
elseif oofs >= rangeOne.Min and oofs <= rangeOne.Max then
clickSpeed.Value = 0.9
print(clickSpeed)
elseif oofs >= rangeTwo.Min and oofs <= rangeTwo.Max then
clickSpeed.Value = 0.8
print(clickSpeed)
end
end)

3 comments
Got an error; Players.stupru.PlayerGui.ScreenGui.mainScript:16: attempt to compare userdata with number
There was an error with my script where I hadn't deleted the closing parentheses on line 13 when I copied your script, but other than that I just tried the code above myself and it works fine once I add variables for oofs, clickSpeed, rangeOne and rangeTwo. Can you post your updated script so I can see what might be causing the error?
ill just post another question on it and post my whole script including variables up to this point