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.

01function watermagic()
02    if game.Workspace.WaterMagic.WaterPlates:FindFirstChild("Part") then
03        waterplates = game.Workspace.WaterMagic.WaterPlates:GetChildren()
04        ranNum1 = math.random(1, #waterplates)
05        waterChosen = waterplates[ranNum1]
06        for i = 0, 1, 0.05 do
07            if waterChosen.Parent == game.Workspace.WaterMagic.WaterPlates then
08                waterChosen.Part.Transparency = 0
09                local move = waterChosen
10                move.Parent = game.Workspace.WaterMagic.Used
11                waterChosen.CanCollide = false
12                if game.Workspace.WaterMagic.BARRIERSGONE.Value == false then
13                game.Workspace.WaterMagic.Barriers:Destroy()
14                game.Workspace.WaterMagic.BARRIERSGONE.Value = true
15                end
16            end
17            end
18        end
19end

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