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

How to make it so function only works when I call it?

Asked by
Rurith 10
10 years ago

For example, I only want this script to work when I call the function:

function timer()
while true do
for i = 25,0,-1 do
script.Parent.Num.SurfaceGui.status.Text = tostring(i)
wait(1)
end
end
end

But, the script works even without me calling the function. How do I solve this?

Answer this question