✓ Accepted answer
Sure. Here you go! Pretty sure you can just make it into a script instead of a LocalScript and it will still work, but I'll do this anyways.
local requiredRankMinimum = 20
local remoteevent = Instance.new('RemoteEvent', game:GetService('ReplicatedStorage'))
remoteevent.Name = "NewTeamColor"
local plr = game.Players.LocalPlayer
function Click(mouse)
remoteevent:FireClient(plr)
end
script.Parent.MouseButton1Click:connect(Click)
game.ReplicatedStorage:WaitForChild('NewTeamColor').OnClientEvent:connect(function()
if plr:GetRankInGroup(882106) >= requiredRankMinimum then
plr.TeamColor = BrickColor.new("Industrial white")
end
end)
I'm not in your group so I can't test this very easily, just let me know if it works.
1 comment
https://www.youtube.com/watch?v=4Dc_bri9mjs