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
 

Teleport Script Doesn't Work

Previous Thread :: Next Thread 
Kevinyock is not online. Kevinyock
Joined: 08 Jul 2009
Total Posts: 7614
22 Jul 2011 12:53 AM
Here is the script -'s means dont count anything above this.


------------------------------------------------------------------------------------------
local place = script:FindFirstChild("55700795")
local spawn = script:FindFirstChild("[SHOP!] ROBLOX Chair Racing! [BETA] (VIP In Desc!) Spawn")
local placeId
local spawnName
if place then
placeId = place.Value
if spawn and spawn.Value then
spawnName = spawn.Value
game:GetService("TeleportService"):TeleportToSpawnByName(placeId, spawnName)
else
game:GetService("TeleportService"):Teleport(placeId)
end
end

Report Abuse
Xsitsu is not online. Xsitsu
Joined: 28 Jul 2009
Total Posts: 2921
22 Jul 2011 12:57 AM
Could you possibly tell me what you know abotu TeleportService please? I've been trying to figure out what it is.
Report Abuse
Kevinyock is not online. Kevinyock
Joined: 08 Jul 2009
Total Posts: 7614
22 Jul 2011 12:58 AM
@xsit
IT just came out today and i am terrible at scripting,so i have no idea,i wish telamon can clarify about the script.
Report Abuse
Xsitsu is not online. Xsitsu
Joined: 28 Jul 2009
Total Posts: 2921
22 Jul 2011 12:59 AM
Where did you learn about it then?
Report Abuse
Lero555 is not online. Lero555
Joined: 22 May 2010
Total Posts: 1017
22 Jul 2011 01:07 AM
local place = script:FindFirstChild("PlaceId")
local spawn = script:FindFirstChild("SpawnName")
local placeId
local spawnName
if place then
placeId = place.Value
if spawn and spawn.Value then
spawnName = spawn.Value
game:GetService("TeleportService"):TeleportToSpawnByName(placeId, spawnName)
else
game:GetService("TeleportService"):Teleport(placeId)
end
end
Try this, if it doesnt work tell me please
Report Abuse
Xsitsu is not online. Xsitsu
Joined: 28 Jul 2009
Total Posts: 2921
22 Jul 2011 01:09 AM
Lero can you tell me what you know about TeleportService please?
Report Abuse
Lero555 is not online. Lero555
Joined: 22 May 2010
Total Posts: 1017
22 Jul 2011 01:11 AM
I know I have one set up in my game that I have no clue how I set up, when you step on the purple button in my place it brings up a screen asking if you want to go to a different place when you hit Yes it takes you to the game I have it set to take you to
Report Abuse
Xsitsu is not online. Xsitsu
Joined: 28 Jul 2009
Total Posts: 2921
22 Jul 2011 01:12 AM
Would it happen to be on free models? I'd like to disect it and learn.
Report Abuse
NINJAKID09 is not online. NINJAKID09
Joined: 27 Aug 2009
Total Posts: 14392
22 Jul 2011 01:12 AM
ocal place = 0 -- put the place ID here
local spawn = "" -- You don't really need that..
local placeId
local spawnName
if place then
placeId = place.Value
if spawn and spawn.Value then
spawnName = spawn.Value
game:GetService("TeleportService"):TeleportToSpawnByName(placeId, spawnName)
else
game:GetService("TeleportService"):Teleport(placeId)
end
end
Report Abuse
NINJAKID09 is not online. NINJAKID09
Joined: 27 Aug 2009
Total Posts: 14392
22 Jul 2011 01:13 AM
local place = 0 -- put the place ID here
local spawn -- You don't really need that..
local placeId
local spawnName
if place then
placeId = place
if spawn then
spawnName = spawn
game:GetService("TeleportService"):TeleportToSpawnByName(placeId, spawnName)
else
game:GetService("TeleportService"):Teleport(placeId)
end
end

-- Sorry fixed it.
Report Abuse
Lero555 is not online. Lero555
Joined: 22 May 2010
Total Posts: 1017
22 Jul 2011 01:14 AM
It was the ROBLOX teleport model
Report Abuse
Lero555 is not online. Lero555
Joined: 22 May 2010
Total Posts: 1017
22 Jul 2011 01:14 AM
Also Ninja the spawn is for if you want to choose which spawn you spawn on in the game
Report Abuse
Xsitsu is not online. Xsitsu
Joined: 28 Jul 2009
Total Posts: 2921
22 Jul 2011 01:15 AM
Would you happen to keep your backpack when transfering between games by any chance >:3? Because I'd LOOOOOOVVVVEEEEEE to insert my game overwritter into a frount page game!
Report Abuse
NINJAKID09 is not online. NINJAKID09
Joined: 27 Aug 2009
Total Posts: 14392
22 Jul 2011 01:16 AM
I know lero, but most people don't need that.
Report Abuse
NINJAKID09 is not online. NINJAKID09
Joined: 27 Aug 2009
Total Posts: 14392
22 Jul 2011 01:17 AM
Incase you ever want to specify a spawn..


local place = 0 -- put the place ID here
local spawn = "nameOfSpawnhere(not place)" -- You don't really need that..
local placeId
local spawnName
if place then
placeId = place
if spawn then
spawnName = spawn
game:GetService("TeleportService"):TeleportToSpawnByName(placeId, spawnName)
else
game:GetService("TeleportService"):Teleport(placeId)
end
end

-- Sorry fixed it.
Report Abuse
Lero555 is not online. Lero555
Joined: 22 May 2010
Total Posts: 1017
22 Jul 2011 01:19 AM
Sadly xsitsu we cant, since when we get into the new game it acts like we had just hit the play button instead of going straight into the game
Report Abuse
Kevinyock is not online. Kevinyock
Joined: 08 Jul 2009
Total Posts: 7614
22 Jul 2011 01:56 AM
@NINJA
It work but it didn't teleport me to anywhere?
Report Abuse
Kevinyock is not online. Kevinyock
Joined: 08 Jul 2009
Total Posts: 7614
22 Jul 2011 11:57 AM
I got it working :D
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