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

Changin humanoid color cliking when I have a tool equiped?

Asked by 10 years ago

I did a script but it won't work

t = script.Parent player = game.Players.LocalPlayer

t.Activated:connect(function() player.Character.Torso.BrickColor = BrickColor.new("Alder") player.Character.LeftLeg.BrickColor = BrickColor.new("Alder") player.Character.RightLeg.BrickColor = BrickColor.new("Alder") end)

What I have to do ?

0
Edit your post and use Lua code formatting. BlueTaslem 18071 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

Try this, and make sure it's a LocalScript.

t = script.Parent ; plr = game.Players.LocalPlayer

t.Activated:connect(function()
    plr.Character.Torso.BrickColor = BrickColor.new("Alder")
    plr.Character["Right Leg"].BrickColor = BrickColor.new("Alder")
    plr.Character["Left Leg"].BrickColor = BrickColor.new("Alder")
end)
Ad

Answer this question