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 11 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 — 11y

1 answer

Log in to vote
2
Answered by 11 years ago
1brick = workspace.Brick --rename it
2 
3brick.Touched:connect(function(hit)
4    if hit.Parent.ClassName == "Model" and hit.Parent:FindFirstChild("Humanoid") then
5        brick.LocalScript:Clone().Parent = hit.Parent --look below for the code for localscript
6        hit.Parent.LocalScript.Disabled = false
7    end
8 end)

v LocalScript v

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

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 — 11y
0
Huh just change the BrickColor . Go here for more info: http://wiki.roblox.com/index.php?title=BodyColor_(Property) SilenceCore 25 — 11y
0
Points please SilenceCore 25 — 11y
0
If you keep helping me, I keep giving points c: MUSHR0OM 0 — 11y
Ad

Answer this question