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

How can I make a script activate on the start of a server?

Asked by
StarAd 50
10 years ago

The server is single-player and I need to start a script on the server start that will use a teleport service. It needs to have a wait time of 60 seconds, i.e.

wait(60)

2 answers

Log in to vote
0
Answered by 10 years ago
local ID=000000 --Switch the 0's out with your place ID
wait(60) --Waits 60 as wanted
game:service("TeleportService"):Teleport(ID) --Teleports player to place

I hope this helped!

Ad
Log in to vote
-1
Answered by 10 years ago

You need a event.

Answer this question