I am changing a GUI TextLabel and it is not changing for some reason. In other words, I need help.
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 1
while true do
local speed = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed
print(speed)
if speed > 0 then
game:GetService("StarterGui").ScreenGui.TextLabel.Text = "NOT FROZEN"
local Random = math.random(1,200)
if Random < 199 then
speed = speed + math.random(1,3)
wait(1)
else
speed = 0
wait(1)
end
else
game:GetService("StarterGui").ScreenGui.TextLabel.Text = "FROZEN"
wait(30)
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 1
end
end
I now I cannot use the variable speed in some parts but If I do not the whole thing shows horribly. I hope you can help!

19 comments
ok thanks
So I just swapped them out and the didn't even do anything! It didn't even print the speed at the start! There was also no error. Any Ideas to why this happened?
do you by chance have another loop above the while loop line like repeat wait or while true do
nope thats all the code I have
it seems to be working for me
the full script is included in the edit
yep
are you sure the script is a local script and is not disabled?
What does disabled mean?
the property called enable making it false makes the script not run at all
How do I check if its disabled?
look at the properties Tab
Yea its definitely enabled
Wait I think I found the issue
Nope it didn't even run the script still
try to test this script inside of a empty baseplate if it works then its definitely some of your script thats not woking
ok I will try it
tysm I found the issue! I didn't put the text at the end of it! Silly me! Thanks for helping me!
np