Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Group Rank Label Doesnt Work?

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

✓ Accepted answer

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.

1 comment

0

dude i already made a non joined group billboard ui and it worked

This discussion is preserved as it was. New answers, comments, and votes are closed.