script.Parent.MouseButton1Click:Connect(function()
local event = -- whereever the event is in RS
event:FireServer()
end)
ServerScript:
local event = --same as the rs thing
game.Players.PlayerAdded:Connect(function(plr)
function Clicked()
if plr:GetRankInGroup(groupIDhere) >= rank then
plr.TeamColor = --teamcolor
event.OnServerEvent()
end
end
end)
If this doesn’t work, DM me on Discord. Ey3r1s#6942
local event = --whereever the evnt is
local function Clicked()
if p:GetRankInGroup(9536284) >= 3 then
p.TeamColor = BrickColor.new("Sea green")
p:LoadCharacter()
end
end
event.OnServerEvent:Connect(Clicked)
end)