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

What is wrong with this script?

Trying to make this script so people in 1 certain rank can't change to the team, but all the other ranks can:

function Click(mouse) 
if script.Parent.Parent.Parent.Parent.Parent:IsInGroup(193585) then 
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Bright blue") 
elseif script.Parent.Parent.Parent.Parent.Parent:IsInGroup(193585) and IsRankInGroup == 2 then
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Institutional white")
end 
end 

script.Parent.MouseButton1Click:connect(Click) 

2 comments

0

if player:GetRankInGroup(groupid) >= rankrequired then

0

I need it to work just for 1 rank. Not that rank and above.

1 answer

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