Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What is wrong with this script?

Asked by 10 years ago

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) 
0
if player:GetRankInGroup(groupid) >= rankrequired then systematicaddict 295 — 10y
0
I need it to work just for 1 rank. Not that rank and above. Pawsability 65 — 10y

1 answer

Log in to vote
-1
Answered by 10 years ago

Help me, please?

Ad

Answer this question