Crespin
|
  |
| Joined: 12 Jun 2013 |
| Total Posts: 292 |
|
|
| 10 Aug 2013 01:16 PM |
How do i make it where every time somebody kills one of my zombies in my game, they get points?
|
|
|
| Report Abuse |
|
|
Crespin
|
  |
| Joined: 12 Jun 2013 |
| Total Posts: 292 |
|
|
| 10 Aug 2013 01:18 PM |
Where would i put this?
while true do print("too fast 4 u") if zombies~=nil and game.Players.LocalPlayer:findFirstChild("points") then in = Instance.new("NumberValue",game.Players.LocalPlayer.PlayerGui) in.Name = "points" in.Value = 2 end end |
|
|
| Report Abuse |
|
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
|
| 10 Aug 2013 01:18 PM |
| Edit a leaderboard script... |
|
|
| Report Abuse |
|
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
|
| 10 Aug 2013 01:19 PM |
| ^^That would break, add a wait() |
|
|
| Report Abuse |
|
|
Crespin
|
  |
| Joined: 12 Jun 2013 |
| Total Posts: 292 |
|
| |
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
|
| 10 Aug 2013 01:26 PM |
Anywhere, this is the simplest.
while wait() do--change the wait time if you want print("too fast 4 u") if zombies~=nil and game.Players.LocalPlayer:findFirstChild("points") then in = Instance.new("NumberValue",game.Players.LocalPlayer.PlayerGui) in.Name = "points" in.Value = 2 end end |
|
|
| Report Abuse |
|
|
Crespin
|
  |
| Joined: 12 Jun 2013 |
| Total Posts: 292 |
|
|
| 10 Aug 2013 01:27 PM |
| Thank you so much. Where do i type this in at? |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2013 01:49 PM |
| Humanoid.Died event is like 10^5% better. |
|
|
| Report Abuse |
|
|