Coopertow
|
  |
| Joined: 18 Apr 2012 |
| Total Posts: 1959 |
|
|
| 16 Apr 2014 08:23 PM |
So what I need Is a Leaderboard that Only has The Word "Prizes" Like this But Can you edit it to instead of "wins" Can you make it "Prizes" And make it where nobody can get a Point or something , I need it for my game what I mean is im gonna use Khols to give the point, Score I don't Want them to get it by killing a player or something.
function CreateStats(NewPlayer) local MainStats = Instance.new("IntValue") MainStats.Name = "leaderstats" MainStats.Value = 0 local PointsValue = Instance.new("IntValue") PointsValue.Name = "Wins" PointsValue.Value = 0 PointsValue.Parent = MainStats MainStats.Parent = NewPlayer return MainStats end
game.Players.ChildAdded:connect(CreateStats) |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2014 08:25 PM |
You can't script can you?
function CreateStats(NewPlayer) local MainStats = Instance.new("IntValue") MainStats.Name = "leaderstats" MainStats.Value = 0 local PointsValue = Instance.new("IntValue") PointsValue.Name = "Prizes"--Where you choose the name of the stat PointsValue.Value = 0 PointsValue.Parent = MainStats MainStats.Parent = NewPlayer return MainStats end
game.Players.ChildAdded:connect(CreateStats) |
|
|
| Report Abuse |
|
|
ibranext
|
  |
| Joined: 08 Aug 2012 |
| Total Posts: 361 |
|
|
| 16 Apr 2014 08:25 PM |
| I don't think its custome if your using leaderstats... |
|
|
| Report Abuse |
|
|
Coopertow
|
  |
| Joined: 18 Apr 2012 |
| Total Posts: 1959 |
|
|
| 16 Apr 2014 08:28 PM |
| But People Can get the points? |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2014 08:29 PM |
| Yes, it is custom. I've made leaderboards before. One having "Gold", "Exilir", "Trophies" as the stats. |
|
|
| Report Abuse |
|
|
ibranext
|
  |
| Joined: 08 Aug 2012 |
| Total Posts: 361 |
|
|
| 16 Apr 2014 08:30 PM |
function PlayerEntered(newPlayer) local stats = Instance.new("IntValue") stats.Parent = newPlayer stats.Name = "Prizes"
local money = Instance.new("IntValue") money.Parent = stats money.Name = "Doubloons" money.Value = 6 end
game.Players.ChildAdded:connect(PlayerEntered) -- So yeh... |
|
|
| Report Abuse |
|
|
ibranext
|
  |
| Joined: 08 Aug 2012 |
| Total Posts: 361 |
|
|
| 16 Apr 2014 08:32 PM |
-- My bad iI used an old script I made XD -- here the new one ;-; function PlayerEntered(newPlayer) local stats = Instance.new("IntValue") stats.Parent = newPlayer stats.Name = "leaderstats" -- leave if not costume
local money = Instance.new("IntValue") money.Parent = stats money.Name = "Prizes" -- Name stat here money.Value = 6 -- Choose amount to start with end -- end :P ...
game.Players.ChildAdded:connect(PlayerEntered) -- Add player
|
|
|
| Report Abuse |
|
|
Coopertow
|
  |
| Joined: 18 Apr 2012 |
| Total Posts: 1959 |
|
|
| 16 Apr 2014 08:44 PM |
ibranex What Does The game.Players.ChildAdded:connect(PlayerEntered) -- Add player
mean? |
|
|
| Report Abuse |
|
|
ibranext
|
  |
| Joined: 08 Aug 2012 |
| Total Posts: 361 |
|
|
| 16 Apr 2014 08:53 PM |
| To show create a new log in folder for the person... |
|
|
| Report Abuse |
|
|