Help https://gyazo.com/9370c11f61a8ac392097138428b9a343 A gif of me doing it in studio
The error 14:03:01.276 - Players.Coder_1.PlayerGui.set.Frame.TextButton.LocalScript:6: attempt to compare number and nil
1 | lua |
2 | --source of error |
3 | if speed > max then |
4 | --my max is defined before this |
5 | local max = game.Players.LocalPlayer:WaitForChild( "leaderstats" ):WaitForChild( "Points" ).Value / 20 + 1 |
6 | -- i gave it enough time for it to load so its not time and every player has a value? |
Any help is taken thanks!!