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: game help

Previous Thread :: Next Thread 
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
19 May 2009 06:32 AM
Im making a laser tag game where you need to hit the enemy
I need a leaderboard with "Hits" and "Times Hit" as well as a laser gun which deals no damage but on hit incrses the "Hits" score on the leaderboard
Report Abuse
KingGhost is not online. KingGhost
Joined: 07 Sep 2007
Total Posts: 13241
19 May 2009 06:40 AM
game.Players.ChildAdded:connect(function(NewPlayer)

Ls = Instance.new("IntValue")
Ls.Name = "Leaderstats"

H = Instance.new("IntValue")
H.Parent = Ls
H.Name = "Hits"
H.Value = 0

TH = Instance.new("IntValue")
TH.Parent = Ls
TH.Name = "Times Hit"
Th.Value = 0

Ls.Parent = NewPlayer
end)




---------------------
That's my first Leader Board!
Report Abuse
KingGhost is not online. KingGhost
Joined: 07 Sep 2007
Total Posts: 13241
19 May 2009 06:49 AM
game.Players.ChildAdded:connect(function(NewPlayer)

Ls = Instance.new("IntValue")
Ls.Name = "leaderstats"
Ls.Parent = NewPlayer

H = Instance.new("IntValue")
H.Parent = Ls
H.Name = "Hits"
H.Value = 0

TH = Instance.new("IntValue")
TH.Parent = Ls
TH.Name = "Times Hit"
Th.Value = 0

end)



Srry
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
19 May 2009 08:44 AM
what about the gun
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
19 May 2009 09:50 AM
can anyone make the gun plz
Report Abuse
Jamesterboy is not online. Jamesterboy
Joined: 29 Aug 2008
Total Posts: 231
19 May 2009 10:06 AM
http://www.roblox.com/Item.aspx?ID=6595121
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