|
| 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
|
  |
| Joined: 09 Jun 2013 |
| Total Posts: 5387 |
|
|
| 19 Mar 2014 08:39 PM |
| player(added).died:teleport('var_','_meta') |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2014 08:41 PM |
Will this work like a place to place teleporter?
|
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 20 Mar 2014 02:38 AM |
--Copyrighted by dennis96411 repeat until teleported |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|