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

I am trying to make something appear for a few seconds when intermission is over?

So I am trying to make a script that makes two teleporters appear for five seconds and then disapear again

Here's the script that I attempted:

game.Workspace.Teleporter2:Destroy() game.Workspace.Teleporter1:Destroy() when Intermission = 0 local map = game.Workspace.Teleporter1 map:Clone().Parent = game.Workspace local map = game.Workspace.Teleporter2 map:Clone().Parent = game.Workspace

Please reply because I am hoping to have my game finished by Christmas

1 answer

-- Create the teleporters
teleporter1 = Workspace.Teleporter1:Clone()
teleporter1.Parent = Workspace
teleporter1.Position = -- Where do you want the teleporter to go?

teleporter2 = Workspace.Teleporter2:Clone()
teleporter2.Parent = Workspace
teleporter2.Position = -- Where do you want the teleporter to go?

-- Add to the debris service
game:GetService("Debris"):AddItem(teleporter1, 5)
game:GetService("Debris"):AddItem(teleporter1, 5)

The Debris service is ideal for deleting elements after a certain amount of time.

It's a little hard to write anything more than vague pseudocode because I'm not entirely sure what the setup of your level is.

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