k3du53
|
  |
| Joined: 18 Jan 2014 |
| Total Posts: 135 |
|
|
| 27 Jan 2016 07:27 PM |
Hello.
I'm working at making a hidden leaderstat, under each player. But, I can't add an IntValue other than "leaderstats" to each player. Are there any other ways to make hidden leaderstats?
#code local hidden = Instance.new("IntValue") hidden.Name = "hiddenstats"
^this script is a function that connect on playeradded
|
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 07:29 PM |
| Just don't keep the intvalues in leaderstats? |
|
|
| Report Abuse |
|
|
k3du53
|
  |
| Joined: 18 Jan 2014 |
| Total Posts: 135 |
|
|
| 27 Jan 2016 07:37 PM |
@SwagCuzYolo
Then they wont display in the leaderboard. I have two other values that are on the leaderboard, and one hidden value. The hidden value is what I'm asking for help with.
|
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 07:47 PM |
| Just don't keep the intvalues in leaderstats [2] |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 07:49 PM |
| err if u want it to be "hidden" and not display on the leaderboard make a folder called "hidden" or "hiddenstats" or something and put values in it |
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 27 Jan 2016 07:49 PM |
dont name it leaderstats
if u cant figure that out
just quit now
http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$1,174 Tx309 (づ ゚ ³ ゚)づ |
|
|
| Report Abuse |
|
|
k3du53
|
  |
| Joined: 18 Jan 2014 |
| Total Posts: 135 |
|
|
| 27 Jan 2016 08:08 PM |
@Recurring @xlaser
That's exactly what I'm doing. When I play in studio, or play in game, it doesn't show up in the player. Leaving an error when I call it later.
Btw, xlaser, what's with the rudeness of your reply?
|
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 08:09 PM |
| It doesn't show up in the player? Er, it looks like you're not setting the parent to player |
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 27 Jan 2016 08:15 PM |
because u have no type of common sense
http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$1,174 Tx309 (づ ゚ ³ ゚)づ |
|
|
| Report Abuse |
|
|
k3du53
|
  |
| Joined: 18 Jan 2014 |
| Total Posts: 135 |
|
|
| 27 Jan 2016 08:17 PM |
@Recurr
In the script, the function connects on the player, and makes the instance.
(R+) #code function onPlayerEntered(blah) local hide = Instance.new("IntValue") hide.Name = "hiddenstats" end game.Players.ChildAdded:connect(blah)
(this is rewrote to show a small part of the script)
|
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 27 Jan 2016 08:18 PM |
...
http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$1,174 Tx309 (づ ゚ ³ ゚)づ |
|
|
| Report Abuse |
|
|
k3du53
|
  |
| Joined: 18 Jan 2014 |
| Total Posts: 135 |
|
|
| 27 Jan 2016 08:22 PM |
Correction,
(R+) #code function onPlayerEntered(newPlayer) local hide = Instance.new("IntValue") hide.Name = "hiddenstats" end game.Players.ChildAdded:connect(onPlayerEntered)
(other code between line 4 and 5)
|
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 08:24 PM |
here's what you need:
game.Players.PlayerAdded:connect(function(player) local stats = Instance.new("Folder", player) stats.Name = "hiddenstats" end) |
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 27 Jan 2016 08:26 PM |
hi, yeah, so
please point out where you parented the "hiddenstats" value to the player in that code |
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 27 Jan 2016 08:26 PM |
| my reply was directed to op |
|
|
| Report Abuse |
|
|
k3du53
|
  |
| Joined: 18 Jan 2014 |
| Total Posts: 135 |
|
|
| 27 Jan 2016 08:35 PM |
Oh, I misread when you said "Folder."
Thank you.
|
|
|
| Report Abuse |
|
|