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: Zombie Script

Previous Thread :: Next Thread 
Crespin is not online. 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 is not online. 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 is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
10 Aug 2013 01:18 PM
Edit a leaderboard script...
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
10 Aug 2013 01:19 PM
^^That would break, add a wait()
Report Abuse
Crespin is not online. Crespin
Joined: 12 Jun 2013
Total Posts: 292
10 Aug 2013 01:19 PM
Where do i put wait?
Report Abuse
Hibobb is not online. 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 is not online. 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
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
10 Aug 2013 01:49 PM
Humanoid.Died event is like 10^5% better.
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