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: Teleport() doesn't work

Previous Thread :: Next Thread 
Snej1 is not online. Snej1
Joined: 25 Jun 2008
Total Posts: 809
09 Aug 2011 09:10 AM
game:GetService"TeleportService":TeleportToSpawnByName(placeID, spawnName) works but game:GetService"TeleportService":Teleport(placeID) doesn't work online. It seems to work in play solo. WHY? It broke a script for me and I had no idea what the problem was. I switched to TeleportToSpawnByName() and the script worked.

~ Chrome extensions FTW ~
Report Abuse
Snej1 is not online. Snej1
Joined: 25 Jun 2008
Total Posts: 809
09 Aug 2011 09:48 AM
Bring
Up
My
Post

Is it just my computer it doesn't work on?!

~ Chrome extensions FTW ~
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
09 Aug 2011 09:49 AM
Is it in a LocalScript?

-Like a boss.
Report Abuse
yoyoman2 is not online. yoyoman2
Joined: 07 Mar 2009
Total Posts: 2170
09 Aug 2011 09:50 AM
take the roblox teleporter and see your problem from there, im to lazy and sad right now
Report Abuse
bikerking300 is not online. bikerking300
Joined: 31 Mar 2010
Total Posts: 1034
09 Aug 2011 09:51 AM
@YoYo :o Why you sad?
Report Abuse
Snej1 is not online. Snej1
Joined: 25 Jun 2008
Total Posts: 809
09 Aug 2011 09:56 AM
It works when I have to teleporter by ROBLOX to use the Teleport() function. But not when I try to use it in a gui.

~ Chrome extensions FTW ~
Report Abuse
Snej1 is not online. Snej1
Joined: 25 Jun 2008
Total Posts: 809
09 Aug 2011 10:10 AM
This is REALLY strange! I set the roblox teleporter to only use the Teleport function as I said and that worked online, but this simple script is a LocaScript, but it only works in play solo:

script.Parent.Places.Button1.MouseButton1Down:connect(function()
game:GetService("TeleportService"):Teleport(41324860)
end)

Odd?

~ Chrome extensions FTW ~
Report Abuse
VortexSecurityHub is not online. VortexSecurityHub
Joined: 03 Aug 2011
Total Posts: 37
09 Aug 2011 10:15 AM
I think it needs to be in a local script.
Report Abuse
Snej1 is not online. Snej1
Joined: 25 Jun 2008
Total Posts: 809
09 Aug 2011 10:17 AM
It is.

~ Chrome extensions FTW ~
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
09 Aug 2011 11:00 AM
I have no idea why that isn't working; I made a GUI that uses the Teleport() method, and it worked for me.
Report Abuse
nexus4345 is not online. nexus4345
Joined: 14 Apr 2009
Total Posts: 398
09 Aug 2011 11:09 AM
If the localscript is in a GUI you have to put wait(1) in the beginning
Report Abuse
Snej1 is not online. Snej1
Joined: 25 Jun 2008
Total Posts: 809
09 Aug 2011 01:24 PM
Yes! It works when I put in wait(1) before the teleport thing! Someone could have told me that a little earlier...

~ Chrome extensions FTW ~
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