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?
1 | brick = workspace.Brick --rename it |
2 |
3 | brick.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
1 | if game.Players.LocalPlayer.Character:FindFirstChild( "BodyColors" ) then |
2 | game.Players.LocalPlayer.Character.BodyColors.RightLegColor = BrickColor:Random() |
3 | game.Players.LocalPlayer.Character.BodyColors.LeftLegColor = BrickColor:Random() |
4 | end |
Ha done! Reputation pl0x