generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Non friendly on kill

Previous Thread :: Next Thread 
brawnerboy is not online. brawnerboy
Joined: 16 Jul 2011
Total Posts: 142
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
brawnerboy is not online. brawnerboy
Joined: 16 Jul 2011
Total Posts: 142
06 May 2013 05:26 PM
Someone plz hel;p
Report Abuse
brawnerboy is not online. brawnerboy
Joined: 16 Jul 2011
Total Posts: 142
07 May 2013 03:16 PM
bump.
Report Abuse
brawnerboy is not online. brawnerboy
Joined: 16 Jul 2011
Total Posts: 142
07 May 2013 04:27 PM
Bump
Report Abuse
Aerok is not online. 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 is not online. 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
brawnerboy is not online. brawnerboy
Joined: 16 Jul 2011
Total Posts: 142
10 May 2013 02:07 PM
Thanks for trying :D Bump again. D:
Report Abuse
brawnerboy is not online. brawnerboy
Joined: 16 Jul 2011
Total Posts: 142
10 May 2013 04:16 PM
Bumpie. Why wont anyone work on my script!!1 I NEED HELP!
Report Abuse
brawnerboy is not online. brawnerboy
Joined: 16 Jul 2011
Total Posts: 142
10 May 2013 04:59 PM
Bump Again...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image