|
| 21 Jul 2011 09:43 AM |
| When you kill a.. something in an RPg game how do you make it so you teleport somewherfe else |
|
|
| Report Abuse |
|
|
hyper900
|
  |
| Joined: 14 May 2009 |
| Total Posts: 873 |
|
|
| 21 Jul 2011 09:44 AM |
script.Parent.Died:connect(function() h = script.Parent.Humanoid if h:FindFirstChild("creator", true) then v = h.Creator.Value
v is the killer |
|
|
| Report Abuse |
|
|
Ozzypig
|
  |
| Joined: 27 Mar 2008 |
| Total Posts: 4906 |
|
|
| 21 Jul 2011 09:44 AM |
You'll have to be a bit more specific. If you're talking about making something not deadly when it dies, then you'll need to post about that.
If you're talking about moving something when it dies, then it's a different story.
~Ozzy |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2011 09:50 AM |
like in Rangemelude's rpg when you kill a boss you teleport back to home
so im trying to do when someone kills something in the game you teleport somewhere |
|
|
| Report Abuse |
|
|
Ozzypig
|
  |
| Joined: 27 Mar 2008 |
| Total Posts: 4906 |
|
|
| 21 Jul 2011 09:53 AM |
In that case, you can change the scripting of your sword to teleport the wielder if they kill a certain monster.
Either that or you can change the on-death script of the monster. It depends on the game!
~Ozzy |
|
|
| Report Abuse |
|
|
| |
|