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

How would I make this wait(0.001) a slower wait time?Solved by myself. [closed]

Asked by 9 years ago

On line 11 this wait is not acceptable. Could you tell me how to find a faster method? Ive tried wait(-999999999) and wait(0.000000001)

Pass= script.Parent.Parent.Parent.Passcode

function Clicked()
    for i=1, 10 do
    wait(0.1)
    script.Parent.ImageTransparency = script.Parent.ImageTransparency +0.1
    end
    wait(0.3)
    script.Parent.Parent.Visible = false
    for b=1,200 do
    wait(0.001)
    Pass.Position = Pass.Position + UDim2.new(0, 1, 0, 0)
    end
end


script.Parent.MouseButton1Down:connect(Clicked)

fixed by changing it to

for b=1,20 do
    wait(1)
    Pass.Position = Pass.Position + UDim2.new(0, 7, 0, 0)
    end
1
You could put up the solution you did so that in the future, people with the same problem can remedy their code faster. Spongocardo 1991 — 9y

Locked by OniiCh_n, Perci1, Spongocardo, and Chili1924

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?