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 » Scripting Helpers
Home Search
 

Re: Teleportation has me stumped.

Previous Thread :: Next Thread 
EverquestI is not online. EverquestI
Joined: 03 Feb 2011
Total Posts: 11109
22 Jul 2011 02:37 PM
wait(10)
game:GetService("TeleportService"):TeleportToSpawnByName(49529893, REDUN)


I have no idea why this doesn't work, and yes it's in a LocalScript.
Report Abuse
AeroMcFly is not online. AeroMcFly
Joined: 16 Jul 2008
Total Posts: 546
22 Jul 2011 02:38 PM
wait(10)
game:GetService("TeleportService"):TeleportToSpawnByName(49529893, "REDUN")


Notice the quotations around REDUN. That second argument is the name of the spawn, and must be a string.
Report Abuse
zakary99 is not online. zakary99
Joined: 19 Jan 2010
Total Posts: 1095
22 Jul 2011 02:38 PM
Try removing REDUN or making it non all capitalized.
Report Abuse
EverquestI is not online. EverquestI
Joined: 03 Feb 2011
Total Posts: 11109
22 Jul 2011 02:46 PM
@Aero

Still nothing
Report Abuse
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
22 Jul 2011 02:48 PM
They both have to be string.

TeleportService:TeleportToSpawnByName(string PlaceID, string SpawnName)

So...

game:GetService("TeleportService"):TeleportToSpawnByName("49529893", "REDUN")
Report Abuse
EverquestI is not online. EverquestI
Joined: 03 Feb 2011
Total Posts: 11109
22 Jul 2011 02:50 PM
@TheNew

That didn't work either.

:/
Report Abuse
AeroMcFly is not online. AeroMcFly
Joined: 16 Jul 2008
Total Posts: 546
22 Jul 2011 02:55 PM
No, the PlaceID is a number
Report Abuse
AeroMcFly is not online. AeroMcFly
Joined: 16 Jul 2008
Total Posts: 546
22 Jul 2011 03:00 PM
Where is your LocalScript in your game?
Report Abuse
EverquestI is not online. EverquestI
Joined: 03 Feb 2011
Total Posts: 11109
23 Jul 2011 04:13 AM
in game.Workspace
Report Abuse
AeroMcFly is not online. AeroMcFly
Joined: 16 Jul 2008
Total Posts: 546
23 Jul 2011 04:13 AM
That's your problem. LocalScripts only work in a player's character, player's backpack, or any descendant of those.
Report Abuse
AeroMcFly is not online. AeroMcFly
Joined: 16 Jul 2008
Total Posts: 546
23 Jul 2011 04:14 AM
Or PlayerGui
Report Abuse
EverquestI is not online. EverquestI
Joined: 03 Feb 2011
Total Posts: 11109
23 Jul 2011 04:14 AM
Oh, thanks!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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