Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

Add Wait() ?

4 comments

0

I tried and it didn't work, where would I have to add it though

0

after line 12

0

and make sure you put the number in this "wait(HERE)" the number THERE means how much seconds before continuing

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

This discussion is preserved as it was. New answers, comments, and votes are closed.