FlameYeti
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 22158 |
|
|
| 05 Oct 2014 06:35 PM |
game.Players.PlayerAdded:connect(function(p) Instance.new("IntValue", p).Name = "Cash" end)
|
|
|
| Report Abuse |
|
|
foldr
|
  |
| Joined: 27 Mar 2010 |
| Total Posts: 697 |
|
|
| 05 Oct 2014 06:40 PM |
game.Players.PlayerAdded:connect(function() x = Instance.new("IntValue", p) x.Name = "Cash" x.Value = 10
|
|
|
| Report Abuse |
|
|
FlameYeti
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 22158 |
|
|
| 05 Oct 2014 06:41 PM |
| ty for making it a lot simpler. |
|
|
| Report Abuse |
|
|
FlameYeti
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 22158 |
|
| |
|
|
| 05 Oct 2014 06:52 PM |
game.Players.PlayerAdded:connect(function(p) game.Players.CharacterAdded:connect(function(c) x = Instance.new("IntValue", p) x.Name = "Cash" x.Value = 10 end) end) |
|
|
| Report Abuse |
|
|
FlameYeti
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 22158 |
|
| |
|
FlameYeti
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 22158 |
|
| |
|
FlameYeti
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 22158 |
|
| |
|
FlameYeti
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 22158 |
|
| |
|
|
| 05 Oct 2014 08:13 PM |
@pr0tractor's, should work?
If your trying to make a leaderboard you need leaderstat |
|
|
| Report Abuse |
|
|
|
| 05 Oct 2014 08:13 PM |
game.Players.PlayerAdded:connect(function(p)) game.Players.CharacterAdded:connect(function(c)) x = Instance.new("IntValue", p) x.Name = "Cash" x.Value = 10 end end
share ur thoughts below!!11 and dotn forget to offer on 26k rap!! |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 05 Oct 2014 08:18 PM |
local leaderboard = { {"Int", "Cash", 10}; {"String", "Example", "hi"}; }
--[[{value type, stat name, default value}]]
game.Players.PlayerAdded:connect(function(player) local leaderstats = Instance.new("leaderstats") leaderstats.Name = "leaderstats" for _, o in pairs (leaderboard) do local stat = Instance.new(o[1] .. "Value", leaderstats) stat.Name = o[2] stat.Value = o[3] end leaderstats.Parent = player end) |
|
|
| Report Abuse |
|
|