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

How do I fix my counting upwards script?

Im trying to make a script that adds to a value every 3 seconds but it doesnt do anything, i dont see any errors on the output.

while true do
	local yes = 1
	local uuu = script.Parent.Text
	local iii = script.Parent.Value
	wait(3)
	uuu = iii.Value
	iii.Value = iii.Value + yes
end

please help me fix it.

3 comments

0

try while true do local yes = 1 local uuu = script.Parent.Text local iii = script.Parent.Value wait(3) uuu = iii.Value iii.Value + yes end

0

ok

0

doesnt work

2 answers

✓ Accepted answer

You called for the value of a value.

iii = script.Parent.Value
iiii.Value

You should refer to iii as the object and get its value.

while true do
    local yes = 1
    local uuu = script.Parent.Text
    local iii = script.Parent
    wait(3)
    uuu = iii.Value
    iii.Value = iii.Value + yes
end

Why do you have

local uuu = script.Parent.Text
local iii = script.Parent.Value

from what i know, there is no instance that has both a text and a value

the variable iii should just be a number instead of script.Parent.Value because the parent should not have a number "value". it should have a "text" value

1 comment

0

oop-

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