|
local marketplace = game:GetService("MarketplaceService")
game.Players.PlayerAdded:connect(function(player)
if player then
player.CharacterAdded:connect(function(char)
if char then
end
end)
end
end)
Checking if they own an asset, I know how to do that, but my problem is I need to know how to add +100 health to a person each time they die (and respawn), how would I do that? |
|
|
|
R1_SKJoin Date: 2012-02-15 Post Count: 10079 |
b... |
|
|
R1_SKJoin Date: 2012-02-15 Post Count: 10079 |
^ bee |
|
|
char.MaxHealth = number
char.Health = number |
|
|
I don't need that. I need to find a way to do it so it does that every time they spawn |
|
|
i think if a person dies they will spawn with that health |
|
LuaDesignJoin Date: 2010-05-24 Post Count: 1443 |
Its hit.Parent:FindFirstChild("Humanoid").MaxHealth = 100+
hit.Parent:FindFirstChild("Humanoid").Health = 100+
Try that. |
|
R1_SKJoin Date: 2012-02-15 Post Count: 10079 |
^
Your words are like dinosaurs, its like they dont even exist. |
|
|
LuaDesignJoin Date: 2010-05-24 Post Count: 1443 |
Why do you have to insult me? |
|
|
because ipod youre in the helpers section of the forums duh |
|
LuaDesignJoin Date: 2010-05-24 Post Count: 1443 |
Why do you mean? |
|
triodeJoin Date: 2011-08-13 Post Count: 5844 |
wow guys... this is a troll thread
gg
ʏᴏᴜ ᴛʜᴏᴜɢʜᴛ ʏᴏᴜ ᴄᴏᴜʟᴅ ᴅʀᴀɢ ᴍᴇ ᴛᴏ ᴛʜᴇ ʙᴏᴛᴛᴏᴍ ᴏғ ᴛʜᴇ ʟᴀᴋᴇ sᴏ ʏᴏᴜ ᴄᴏᴜʟᴅ ᴇᴀᴛ ᴍᴇ ʟᴀᴛᴇʀ... ᴡᴇʟʟ ɢᴜᴇss ᴡʜᴀᴛ ᴘᴜɴᴋ... ɪᴍ ᴀ ғɪsʜ... ᴡɪᴛʜ ʟᴇɢs |
|
LuaDesignJoin Date: 2010-05-24 Post Count: 1443 |
Ohh, I'm dumb. I just realized |
|
triodeJoin Date: 2011-08-13 Post Count: 5844 |
he wants you to give 100 health after a character dies or respawns.
hmmm i wonder how you do tht..
i think ROBLOX does tht for you
ʏᴏᴜ ᴛʜᴏᴜɢʜᴛ ʏᴏᴜ ᴄᴏᴜʟᴅ ᴅʀᴀɢ ᴍᴇ ᴛᴏ ᴛʜᴇ ʙᴏᴛᴛᴏᴍ ᴏғ ᴛʜᴇ ʟᴀᴋᴇ sᴏ ʏᴏᴜ ᴄᴏᴜʟᴅ ᴇᴀᴛ ᴍᴇ ʟᴀᴛᴇʀ... ᴡᴇʟʟ ɢᴜᴇss ᴡʜᴀᴛ ᴘᴜɴᴋ... ɪᴍ ᴀ ғɪsʜ... ᴡɪᴛʜ ʟᴇɢs |
|
|
soo you mean the health the player has would equal to 200 because the original is 100 |
|
|
local marketplace = game:GetService("MarketplaceService")
game.Players.PlayerAdded:connect(function(player)
if player then
player.CharacterAdded:connect(function(char)
if char then
char.Humanoid.MaxHealth=MaxHealth+100
char.Humanoid.Health=Health+100
end
end)
end
end)
|
|
|
local marketplace = game:GetService("MarketplaceService")
game.Players.PlayerAdded:connect(function(player)
if player then
player.CharacterAdded:connect(function(char)
if char then
char.Humanoid.MaxHealth=200
char.Humanoid.Health=200
end
end)
end
end)
|
|
|
i thought he meants plus 100 |
|
triodeJoin Date: 2011-08-13 Post Count: 5844 |
I guess it could mean tht
It took me 30 seconds to believe this was a troll thread so either idk what he wants because he didn't word it clearly or its troll
he could want:
- Spawn with 100 extra health
- If someone has an asset they spawn with 100 more health
- Add 100 health when they die and respawn
umg
ʏᴏᴜ ᴛʜᴏᴜɢʜᴛ ʏᴏᴜ ᴄᴏᴜʟᴅ ᴅʀᴀɢ ᴍᴇ ᴛᴏ ᴛʜᴇ ʙᴏᴛᴛᴏᴍ ᴏғ ᴛʜᴇ ʟᴀᴋᴇ sᴏ ʏᴏᴜ ᴄᴏᴜʟᴅ ᴇᴀᴛ ᴍᴇ ʟᴀᴛᴇʀ... ᴡᴇʟʟ ɢᴜᴇss ᴡʜᴀᴛ ᴘᴜɴᴋ... ɪᴍ ᴀ ғɪsʜ... ᴡɪᴛʜ ʟᴇɢs |
|
|
guys its not a troll i figured this out 2 hours ago sorry LOL |
|