How can I make a button that only works if you are a certain rank in the group
example
GuiButton.MouseButton1Click:Connect(function()
if Player:IsInGroup(0000) and Player:GetRankInGroup(0000) >= 255 then
-- "0000" would be your group's id
-- "255" should be the rank in your group
-- do stuff
end
end)
1 Like
ok thank you i will test it out
in the output it says
Players.JadtrugamingYT1.PlayerGui.Loading screen.TeamsFrame.staff.LocalScript:6: Expected '(', '{' or <string> when parsing function call, got '>='
Yea, I forgot the parenthesis when I typed the code sample
-- change the if statement to this:
if Player:IsInGroup(0000) and Player:GetRankInGroup(0000) >= 255 then
Player:GetRankInGroup(0000)
wat does that do
Basically, it’s what Player:IsInGroup(0000) does except it returns what rank the user is in the group.