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?
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