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

How would I be able to make this thing in my minigame last longer?

Asked by 6 years ago

So it's like every second this thing pops up each time, I want it to pop up once, then have a delayed time so after that time is done, another pops up.

function watermagic()
    if game.Workspace.WaterMagic.WaterPlates:FindFirstChild("Part") then
        waterplates = game.Workspace.WaterMagic.WaterPlates:GetChildren()
        ranNum1 = math.random(1, #waterplates)
        waterChosen = waterplates[ranNum1]
        for i = 0, 1, 0.05 do
            if waterChosen.Parent == game.Workspace.WaterMagic.WaterPlates then
                waterChosen.Part.Transparency = 0
                local move = waterChosen
                move.Parent = game.Workspace.WaterMagic.Used
                waterChosen.CanCollide = false
                if game.Workspace.WaterMagic.BARRIERSGONE.Value == false then
                game.Workspace.WaterMagic.Barriers:Destroy()
                game.Workspace.WaterMagic.BARRIERSGONE.Value = true
                end
            end
            end
        end
end

1 answer

Log in to vote
1
Answered by
CjayPlyz 643 Moderation Voter
6 years ago

Add Wait() ?

0
I tried and it didn't work, where would I have to add it though TheOnlySmarts 233 — 6y
0
after line 12 CjayPlyz 643 — 6y
0
and make sure you put the number in this "wait(HERE)" the number THERE means how much seconds before continuing CjayPlyz 643 — 6y
0
It still doesn't work unfortunately, it stops the game time, then it waits 3 seconds, and then it starts again and it goes fast again, like last time TheOnlySmarts 233 — 6y
Ad

Answer this question