Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Group Rank Label Doesnt Work?

Asked by 8 days ago

This is in serverstorage a billboard gui

game.Players.PlayerAdded:Connect(function(Player)
    if Player:GetRankInGroup(7870490) == 255 then
        script.Parent.Text = "Red Dino"
    elseif Player:GetRankInGroup(7870490) == 254 then
        script.Parent.Text = "Dino Dev"
    elseif Player:GetRankInGroup(7870490) == 253 then
        script.Parent.Text = "Dino Mod"
    elseif Player:GetRankInGroup(7870490) == 3 then
        script.Parent.Text = "Legend Dino"
    elseif Player:GetRankInGroup(7870490) == 2 then
        script.Parent.Text = "Advanced Dino"
    elseif Player:GetRankInGroup(7870490) == 1 then
        script.Parent.Text = "Dino"
    end
end)

1 answer

Log in to vote
0
Answered by 8 days ago

It is a very common problem but, no scripts can run inside of ServerStorage. This script should go in ServerScriptService, which is similar to ServerStorage but holds scripts.

For more information on ServerScriptService and ServerStorage can be found here: https://developer.roblox.com/en-us/api-reference/class/ServerScriptService, https://developer.roblox.com/en-us/api-reference/class/ServerStorage

NB: YOU CANNOT PARENT A SCRIPT TO ServerScriptService AND YOU CANNOT PARENT ANYTHING TO ServerStorage.

0
dude i already made a non joined group billboard ui and it worked stevenfury91 6 — 8d
Ad

Answer this question