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

Body colors and hats?

Asked by 9 years ago

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!

0
Are you trying to make it so when a person joins they get these changes or when a Surface/Screen GUI is clicked? Vividex 162 — 9y
0
yes, once clicked Grenaderade 525 — 9y

1 answer

Log in to vote
-1
Answered by 9 years ago

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

0
That wouldn't work. RGB is for GUIS Vividex 162 — 9y
Ad

Answer this question