I'm trying to make a script, where when you click a gui you are supposed to click, it'll make your character change up, but it's not working...
Also I need it where it removes all your hats.
char = game.Players.LocalPlayer.Character -- variable
script.Parent["MouseButton1Click"]:connect(function() -- working
script.Parent.Parent.Parent:Destroy() --working
game.Workspace.CurrentCamera.Sound:Stop()--working
game.Workspace.CurrentCamera.Sound.SoundId = "http://www.roblox.com/asset/?id=150755805" -- working
game.Workspace.CurrentCamera.Sound:Play()--working
char.BodyColors.RightArmColor = BrickColor.new("Bright blue") --not working
char.BodyColors.LeftArmColor = BrickColor.new("Bright blue")--not working
char.BodyColors.TorsoColor = BrickColor.new("Bright blue")--not working
char.BodyColors.RightLegColor = BrickColor.new("Bright blue")--not working
char.BodyColors.LeftLegColor = BrickColor.new("Bright blue")--not working
char.BodyColors.HeadColor = BrickColor.new("Really black")--not working
game.Lighting.KnightHelmet:Clone().Parent = char --not working
end)
Thanks for the help!

2 comments
Are you trying to make it so when a person joins they get these changes or when a Surface/Screen GUI is clicked?
yes, once clicked