Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My LeaderBoard/GroupRank Leaderboard wont work whats wrong?

Asked by 5 years ago

So I have a leaderboard with 2 IntValue's and a BoolValue for a Group rank, but the BoolValue part won't work with the intValue's, but it does not tell me why. What went wrong. Here is the Script. (P.S. the IntValues still work.)

---Script---

01local DataStoreService = game:GetService("DataStoreService")
02 
03local myDataStore = DataStoreService:GetDataStore("myDataStore")
04 
05game.Players.PlayerAdded:Connect(function(player)
06    local leaderstats = Instance.new("Folder")
07    leaderstats.Name = "leaderstats"
08    leaderstats.Parent = player
09 
10    local cash = Instance.new("IntValue")
11    cash.Name = "Cash"
12    cash.Parent = leaderstats
13    cash.Value = 0
14 
15    local cash = Instance.new("IntValue")
View all 50 lines...

1 answer

Log in to vote
0
Answered by 5 years ago
1local Rank = Instance.new("BoolValue")
2Rank.Name = "Rank"
3Rank.Parent = leaderstats
4Rank.Value = player:GetRoleInGroup(5081083)

i dont know, must work

Ad

Answer this question