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

Recolor Limbs onTouch Script help?

Asked by 10 years ago

How do I use Vector3 or Color3 to put into a brick; when they walk through the brick, it recolors all limbs. How would I do this?

0
You don't use Vector3 or Color3 to edit a color of a brick but the data-type of changing the property of BrickColor is BrickColor Kozero 120 — 10y

1 answer

Log in to vote
2
Answered by 10 years ago
brick = workspace.Brick --rename it 

brick.Touched:connect(function(hit)
    if hit.Parent.ClassName == "Model" and hit.Parent:FindFirstChild("Humanoid") then
        brick.LocalScript:Clone().Parent = hit.Parent --look below for the code for localscript
        hit.Parent.LocalScript.Disabled = false
    end
 end)

v LocalScript v

if game.Players.LocalPlayer.Character:FindFirstChild("BodyColors") then
game.Players.LocalPlayer.Character.BodyColors.RightLegColor = BrickColor:Random()
game.Players.LocalPlayer.Character.BodyColors.LeftLegColor = BrickColor:Random()
end 

Ha done! Reputation pl0x

0
Do these 2 go together? And how would I change it so it turns the player all black? MUSHR0OM 0 — 10y
0
Huh just change the BrickColor . Go here for more info: http://wiki.roblox.com/index.php?title=BodyColor_(Property) SilenceCore 25 — 10y
0
Points please SilenceCore 25 — 10y
0
If you keep helping me, I keep giving points c: MUSHR0OM 0 — 10y
Ad

Answer this question