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 comment

1

You could put up the solution you did so that in the future, people with the same problem can remedy their code faster.