Do you get any errors in the output? Try using print statements to see what code runs.
[11:10:44.142 - HeightGui is not a valid member of PlayerGui]
I Think I got the issue
Thanks for the support I didnt expected this to be solved fast
1 Like
To get the HeightGui, i think using script:FindFirstAncestorOfClass("ScreenGui")
, will help.
1 Like
Actually nevermind I might fix the issue
Thank you its now solved! I Renamed the gui and its done (Sorry for making you busy)
RunService.Heartbeat is way more effective than using a while loop here.
Works great, but I donāt want it to detect the player moving backwards.