Dark_YugiJoin Date: 2010-08-26 Post Count: 11036 |
I want to make it so if your holding it/have it in your backpack and you die, it respawns, though, it isn't working.
One, I know it won't work if i'm holding it, if anyone could help, that'd be appreciated.
Two, it doesn't respawn.
Humanoid = script.Parent.Parent.Parent.Humanoid -- I honestly don't know how to find the humanoid from here.
if Humanoid.health == 0 then
selfClone = game.ServerStorage.Maps["Midnight Moon Shrine"]["Mysterious Blue Orb"]:clone()
selfClone.parent = game.Workspace["Midnight Moon Shrine"]
end |
|
|
Put the tool in the Player's Starterpack |
|
Dark_YugiJoin Date: 2010-08-26 Post Count: 11036 |
It can't be in the starterpack, you only find it on the map. |
|
Dark_YugiJoin Date: 2010-08-26 Post Count: 11036 |
Plus, I don't want it to stay with them, I want it to respawn on my map. |
|
|
Oh k. Well, have a model in Lighting or ServerStorage and clone it out to the spawn point. |
|
Dark_YugiJoin Date: 2010-08-26 Post Count: 11036 |
That's what I have. I just don't know how to access the players humanoid from the backpack or while they are holding it.
Did you not read my script? |
|
|
Is this script INSIDE the Player? If so, it's the Character, not the Player in the Players list, right? I can most likely fix this for you I just need more information. Also, is it .Touched or .MouseClick? I'm confused by what you have. o_o Sorry.
- WrightRacer3n |
|
Dark_YugiJoin Date: 2010-08-26 Post Count: 11036 |
It's in the tool itself. |
|
|
Well, what do you think about having BoolValues inside the Player that'll turn true if they find an item on the map otherwise be false if they don't. Then, when they die, it checks to see if those Values are true and if so, gives you that weapon again? If you like this idea, I can write it up for you. :)
- WrightRacer3n |
|
Dark_YugiJoin Date: 2010-08-26 Post Count: 11036 |
I like the bool value part; the issue is it needs to respawn on the map, so I need to clone it from server storage. |
|
|
Alright, so it needs to respawn on the map, so someone else can also get the chance to get it? That's not hard and you could have a whole different script that's just for placing the weapons across the map.
- WrightRacer3n |
|
Dark_YugiJoin Date: 2010-08-26 Post Count: 11036 |
It's not weapons, it's a type of key item that you need to advance. |
|
|
Hmm.. I guess I don't understand what you're doing now then. If you'd like, feel free to PM me with all the details that way I can better understand what you're doing. I can think of numerous ways to go about doing this, but would have to understand what you're doing more.
- WrightRacer3n |
|