Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

help, my text isn't changing to the right text? [SOLVED]

my script :

if game.Players.LocalPlayer.hiddenstats.AddedSpeed.Value >= 20 then
	game.Players.LocalPlayer.hiddenstats.AddedSpeed.Value = 20
	script.Parent.Text = "Max Speed"
else
	wait(1)
	script.Parent.Text = ("+"..game.Players.LocalPlayer.hiddenstats.AddedSpeed.Value.." Speed")
end

my problem :

when the value is 20 or above it should change to "max" but it says "+20 Speed" instead.

1 answer

Just found answer i needed to put a "wait()" on the first line

2 comments

0

I think you want to loop that, if so do a while wait() do

0

no i meant wait(1) xd

This discussion is preserved as it was. New answers, comments, and votes are closed.