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

Body colors and hats?

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

0

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

0

yes, once clicked

1 answer

I'd use color IDs if I were you. Just a suggestion.

1 comment

0

That wouldn't work. RGB is for GUIS

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