Advertisement
HenloMyDude

dyna man

Dec 20th, 2019
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.84 KB | None | 0 0
  1.  
  2. plr = owner
  3. char = plr.Character
  4. root = char.HumanoidRootPart
  5. tors = char.Torso
  6. ra = char["Right Arm"]
  7. la = char["Left Arm"]
  8. rl = char["Right Leg"]
  9. ll = char["Left Leg"]
  10. hed = char.Head
  11.  
  12. for i,v in pairs (char:GetDescendants()) do
  13. if v:IsA("Hat") or v:IsA("Accessory") or v:IsA("Decal") or v:IsA("Texture") then
  14. v:remove()
  15. end
  16. if v:IsA("Part") then
  17. local mesh = Instance.new("SpecialMesh",v)
  18. mesh.Scale = Vector3.new(0, 0, 0)
  19. if v.Name ~= "Head" then
  20. v.Transparency = 1
  21. end
  22. end
  23. end
  24.  
  25. ezweld = function(p, a, b, cf)
  26. local weld = Instance.new("Weld",p)
  27. weld.Part0 = a
  28. weld.Part1 = b
  29. weld.C0 = cf
  30. return weld
  31. end
  32.  
  33. --torso
  34.  
  35. local part = Instance.new("Part", char)
  36. part.Massless = true
  37. part.Material = "SmoothPlastic"
  38. part.Size = Vector3.new(2, 1, 1)
  39. part.Color = BrickColor.new("Ghost grey").Color
  40. local weld = ezweld(char, part, tors, CFrame.new(0, 0.5, 0))
  41.  
  42. local part = Instance.new("Part", char)
  43. part.Massless = true
  44. part.Size = Vector3.new(2, 1, 1)
  45. part.Color = BrickColor.new("Bright red").Color
  46. part.Name = "e"
  47. part.TopSurface = "Weld"
  48. local weld = ezweld(char, part, tors, CFrame.new(0, -0.5, 0))
  49.  
  50. --head
  51.  
  52. local part = Instance.new("Part", char)
  53. part.Massless = true
  54. part.Shape = "Ball"
  55. part.Material = "SmoothPlastic"
  56. part.Size = Vector3.new(2, 2, 2)
  57. part.Color = BrickColor.new("Bright yellow").Color
  58. local weld = ezweld(char, part, hed, CFrame.new(0, -0.5, 0.25))
  59.  
  60. --right leg
  61.  
  62. local part = Instance.new("Part", char)
  63. part.Massless = true
  64. part.Size = Vector3.new(1, 2, 1)
  65. part.Color = BrickColor.new("Bright red").Color
  66. part.Name = "e"
  67. part.TopSurface = "Smooth"
  68. local weld = ezweld(char, part, rl, CFrame.new(0, 0, 0))
  69.  
  70. --left leg
  71.  
  72. local part = Instance.new("Part", char)
  73. part.Massless = true
  74. part.Size = Vector3.new(1, 2, 1)
  75. part.Color = BrickColor.new("Bright red").Color
  76. part.Name = "e"
  77. part.TopSurface = "Smooth"
  78. local weld = ezweld(char, part, ll, CFrame.new(0, 0, 0))
  79.  
  80. --right arm
  81.  
  82. local part = Instance.new("Part", char)
  83. part.Massless = true
  84. part.Size = Vector3.new(1, 2, 1)
  85. part.Color = BrickColor.new("Bright yellow").Color
  86. part.TopSurface = "Smooth"
  87. local weld = ezweld(char, part, ra, CFrame.new(0, 0, 0))
  88.  
  89. --left arm
  90.  
  91. local part = Instance.new("Part", char)
  92. part.Massless = true
  93. part.Size = Vector3.new(1, 2, 1)
  94. part.Color = BrickColor.new("Bright yellow").Color
  95. part.TopSurface = "Smooth"
  96. local weld = ezweld(char, part, la, CFrame.new(0, 0, 0))
  97.  
  98. --change
  99.  
  100. plr.Chatted:connect(function(msg)
  101. if msg == "!red" then
  102. for i,v in pairs (char:children()) do
  103. if v:IsA("Part") and v.Name == "e" then
  104. v.Color = BrickColor.new("Bright red").Color
  105. end
  106. end
  107. end
  108. if msg == "!blue" then
  109. for i,v in pairs (char:children()) do
  110. if v:IsA("Part") and v.Name == "e" then
  111. v.Color = BrickColor.new("Deep blue").Color
  112. end
  113. end
  114. end
  115. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement