generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Sooo...

Previous Thread :: Next Thread 
Gofven is not online. 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 is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
20 Oct 2016 01:44 AM
Bump
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
20 Oct 2016 02:05 AM
I will never give up bumping.
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
20 Oct 2016 02:10 AM
BUUMP
Report Abuse
Gofven is not online. 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
nooneisback is not online. nooneisback
Joined: 28 Feb 2012
Total Posts: 1672
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 is not online. 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 is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
20 Oct 2016 01:35 PM
Bump
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
20 Oct 2016 01:41 PM
bumpf
Report Abuse
Gofven is not online. Gofven
Joined: 18 Jun 2015
Total Posts: 767
20 Oct 2016 01:52 PM
Last bump then repost with a cleaner text
Report Abuse
nooneisback is not online. nooneisback
Joined: 28 Feb 2012
Total Posts: 1672
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image