|
| 06 May 2013 04:49 PM |
I want this script to work as so when someone kills another player, they get a billboard gui on top of them that says they are non friendly. I have images already, but I want it so also, when a player joins, they are counted friendly in the beginning until they kill someone. Here is the script
Player = script.Parent.Parent.Parent.Parent.Character
function Create() local Billboard = script.Parent.Parent.PVP:Clone() Billboard.Parent = Player.Head Billboard.Adornee = Player.Head Billboard.Mode.Visible = true end
game.Players.PlayerAdded:connect(function(player) if Player.Head:FindFirstChild("PVP") then Player.Head.PVP.Mode.Image = "http://www.roblox.com/asset/?id=47029304" else Create() end end
function onHumanoidDied(humanoid, player) local killer = getKillerOfHumanoidIfStillInGame(humanoid) if Player.Head:FindFirstChild("PVP") then Player.Head.PVP.Mode.Image = "http://www.roblox.com/asset/?id=47029326" else Create() end
end
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
Aerok
|
  |
| Joined: 04 May 2013 |
| Total Posts: 33 |
|
|
| 07 May 2013 04:30 PM |
| I believe your first problem is that you are not accessing the character properly you need to use a player added function. I will try to help more but I am new to scripting. |
|
|
| Report Abuse |
|
|
Aerok
|
  |
| Joined: 04 May 2013 |
| Total Posts: 33 |
|
|
| 07 May 2013 04:34 PM |
| Never mind, sorry man I tried but I am a beginner. |
|
|
| Report Abuse |
|
|
|
| 10 May 2013 02:07 PM |
| Thanks for trying :D Bump again. D: |
|
|
| Report Abuse |
|
|
|
| 10 May 2013 04:16 PM |
| Bumpie. Why wont anyone work on my script!!1 I NEED HELP! |
|
|
| Report Abuse |
|
|
| |
|