Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local runner = game.Workspace:WaitForChild("refrop")
- runner.Head.Mesh:Destroy()
- local leftleg = runner:FindFirstChild("Left Leg")
- local rightleg = runner:FindFirstChild("Right Leg")
- local leftarm = runner:FindFirstChild("Left Arm")
- local rightarm = runner:FindFirstChild("Right Arm")
- local detect = Instance.new("Part")
- local weld = Instance.new("WeldConstraint")
- local children = runner:GetChildren()
- for i = 1, #children do
- if children[i].Shirt then
- children[i].Shirt:Destroy()
- end
- if children[i].Pants then
- children[i].Pants:Destroy()
- end
- end
- detect.Parent = game.Workspace
- detect.Position = runner.Torso.Position - Vector3.new(0, 3, 0)
- detect.Size = Vector3.new(0.5, 0.5, 0.5)
- detect.Anchored = false
- detect.CanCollide = false
- detect.Transparency = 1
- weld.Parent = detect
- weld.Part0 = runner.Torso
- weld.Part1 = detect
- function onTouch(part)
- local part = part
- if (part ~= nil) then
- print(part.Name)
- runner.Head.Color = part.Color
- runner.Head.Material = part.Material
- runner.Torso.Color = part.Color
- runner.Torso.Material = part.Material
- rightarm.Color = part.Color
- rightarm.Material = part.Material
- leftarm.Color = part.Color
- leftarm.Material = part.Material
- leftleg.Color = part.Color
- leftleg.Material = part.Material
- rightleg.Color = part.Color
- rightleg.Material = part.Material
- end
- end
- detect.Touched:connect(onTouch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement