local P = script.Parent.Parent.Parent.Parent.Parent.Name
local HLoc = workspace:FindFirstChild(P)
function onClick(mouse)
local Hat= HLoc:findFirstChild("Face1")
Hat.Color.BrickColor = BrickColor.new("Really red")
Hat.Color1.BrickColor = BrickColor.new("Really red")
Hat.Color2.BrickColor = BrickColor.new("Bright yellow")
end
script.Parent.MouseButton1Down:connect(onClick)
I've tried Getingrouprank but idk what's happening because there's never an error.
I wanna make it where it only changes color of the helmet if the person is the rank needed.