Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why wont this script change the string value?

Asked by 4 years ago

I want this to change the string value to 2nd but it won't work. Script:

while true do
    wait(0.1)
if game.ServerStorage.ClockValues.minutes.Value == 0 and game.ServerStorage.ClockValues.seconds.Value == 0 and game.ServerStorage.ClockValues.per == '1st' then
        game.ServerStorage.ClockValues.per = '2nd'
end
end
0
You need to include .Value like line 3 User#5423 17 — 4y
0
and line 4 TheRealPotatoChips 793 — 4y
0
What is the output? LUCATIVIOMAD2 54 — 4y
0
nothing no errors KronxGoat 50 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

You need to include ".Value" for both lines 3 & 4

0
still didnt work KronxGoat 50 — 4y
0
Make it = not == MajenBej 5 — 4y
Ad

Answer this question