Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
|
| 19 Oct 2016 03:09 PM |
Soo I want this script to change playerspawn to a new one called StartingInPlace, I dont know how to do it...
------------Script--------------
while wait(1) do if _G.Tc1WaitingHubFinished == true then local TS = game:GetService("TeleportService") local Players = game:GetService("Players") local code = TS:ReserveServer(game.PlaceId) local players = Players:GetPlayers() TS:TeleportToPrivateServer(game.PlaceId,code,players)
-- You could add extra arguments to this function: spawnName, teleportData and customLoadingScreen
end end |
|
|
| Report Abuse |
|
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
| |
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
|
| 20 Oct 2016 02:05 AM |
| I will never give up bumping. |
|
|
| Report Abuse |
|
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
| |
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
|
| 20 Oct 2016 01:02 PM |
bump
Also for the braindeads, I basically want players to spawn at another place, not the same place. |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 01:12 PM |
So... Are you trying to teleport players to different places or are you trying to actually spawn them in a different position on the server? Your queestion looks more like a "Is carbon oxyde toxic"... It can't be answered easily.
Anyways, if so, and if you want the player to randomly get teleported to one of the places do:
math.randomseed(tick()) local x= math.random(0,2) if x<=1 then --teleport else --teleport to the other place end
If you want the player to get spawned at a different position on the other server, why not control it on that server itself?
Your question is incomplete and we can't read your mind. |
|
|
| Report Abuse |
|
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
|
| 20 Oct 2016 01:23 PM |
It's pretty clear that I didn't type any other kind of place ID inside the script, but whatever...
I am trying to tp them to a reserved server, I want them to tp to another spawnpoint instead of the main one, how can i do that? |
|
|
| Report Abuse |
|
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
| |
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
| |
|
Gofven
|
  |
| Joined: 18 Jun 2015 |
| Total Posts: 767 |
|
|
| 20 Oct 2016 01:52 PM |
| Last bump then repost with a cleaner text |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 02:06 PM |
| The teleport data should be a table that contains a value. The server the player gets teleported to will check if it's true or not, if it's true the player gets spawned on the 2nd point, if not he spawns on the first point. |
|
|
| Report Abuse |
|
|