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
 

Re: Need help with teleport to place on death script!

Previous Thread :: Next Thread 
ZBoyer1000 is not online. ZBoyer1000
Joined: 10 Feb 2013
Total Posts: 271
19 Mar 2014 08:37 PM
No matter how hard I tried making this kind of script, it won't work. I need some help because one of my games in progress needs this kind of script to enchant gameplay.

I tried getting code from a player teleport model and changed %80 of it to work on death but it always ends out with an error.
Report Abuse
Devoi is not online. Devoi
Joined: 09 Jun 2013
Total Posts: 5387
19 Mar 2014 08:39 PM
player(added).died:teleport('var_','_meta')
Report Abuse
ZBoyer1000 is not online. ZBoyer1000
Joined: 10 Feb 2013
Total Posts: 271
19 Mar 2014 08:41 PM
Will this work like a place to place teleporter?
Report Abuse
EchoReaper is online. EchoReaper
Joined: 14 Oct 2008
Total Posts: 4323
19 Mar 2014 08:45 PM
No, you have to add this into a script(and place that script into the ServerScriptService):

Instance.new("ManualSurfaceJointInstance",workspace)

--end script

That creates a "surface" between the two places that allows players to traverse between them.
Report Abuse
frost209 is not online. frost209
Joined: 31 Aug 2008
Total Posts: 90
20 Mar 2014 12:44 AM
local GamePlace = 45391687; -- the game you wish to teleport them.
function OnDied(Player)
print('Teleporting',Player.Name,GamePlace)
game:service('TeleportService'):Teleport(GamePlace,Player)
end

game:service('Players').ChildAdded:connect(function(Player)
repeat wait() until Player.Character
local Human = Player.Character:FindFirstChild('Humanoid')
Human.Died:connect(function() OnDied(Player); end)
Player.CharacterAdded:connect(function() -- so that when they respawn the function will still run.
local Human = Player.Character:FindFirstChild('Humanoid');
if not Human then repeat wait() until Human; end
Human.Died:connect(function() OnDied(Player); end)
end)
end)

-- This does exactly what you want, please look over it and learn from it.
Report Abuse
dennis96411 is not online. dennis96411
Joined: 06 Mar 2009
Total Posts: 1079
20 Mar 2014 02:38 AM
--Copyrighted by dennis96411
repeat until teleported
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
20 Mar 2014 02:44 AM
waT is copiewrite?
is dat lik da contorl c n v ?
wat u need is my copie protectian i well beet the theefs dat mess whit ur stuf
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