Advertisement
refrop

MyDummy (Colors)

Jun 16th, 2021
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.28 KB | None | 0 0
  1. local runDummyScript = function(f,scri)
  2. local oldenv = getfenv(f)
  3. local newenv = setmetatable({}, {
  4. __index = function(_, k)
  5. if k:lower() == 'script' then
  6. return script
  7. else
  8. return oldenv[k]
  9. end
  10. end
  11. })
  12. setfenv(f, newenv)
  13. ypcall(function() f() end)
  14. end
  15.  
  16.  
  17. cors = {}
  18. Wo = Instance.new("Model",game:GetService("Lighting"))
  19. Wo.Name = "CompiledModel"
  20.  
  21. -----variables
  22.  
  23.  
  24.  
  25. local base = Instance.new("Model")
  26. base.Name = "MyDummy"
  27.  
  28. -------body
  29. local Head = Instance.new("Part")
  30. Head.Name = "Head"
  31.  
  32. local Torso = Instance.new("Part")
  33. Torso.Name = "Torso"
  34.  
  35. local LeftArm = Instance.new("Part")
  36. LeftArm.Name = "Left Arm"
  37.  
  38. local RightArm = Instance.new("Part")
  39. RightArm.Name = "Right Arm"
  40.  
  41. local LeftLeg = Instance.new("Part")
  42. LeftLeg.Name = "Left Leg"
  43.  
  44. local RightLeg = Instance.new("Part")
  45. RightLeg.Name = "Right Leg"
  46.  
  47. local Humanoid = Instance.new("Humanoid")
  48. Humanoid.Name = "Humanoid"
  49.  
  50.  
  51. local Face = Instance.new("Decal")
  52. Face.Name = "Face"
  53. -------body
  54.  
  55. ------Motor6D
  56.  
  57. local Neck = Instance.new("WeldConstraint")
  58. Neck.Name = "Neck"
  59.  
  60. local RightShoulder = Instance.new("WeldConstraint")
  61. RightShoulder.Name = "Right Shoulder"
  62.  
  63. local LeftHip = Instance.new("WeldConstraint")
  64. LeftHip.Name = "Left Hip"
  65.  
  66. --local LeftShoulder = Instance.new("Motor6D")
  67. --LeftShoulder.Name = "Left Shoulder"
  68.  
  69. local LeftShoulder = Instance.new("WeldConstraint")
  70. LeftShoulder.Name = "Left Shoulder"
  71.  
  72.  
  73. local RightHip = Instance.new("WeldConstraint")
  74. RightHip.Name = "Right Hip"
  75.  
  76. local Mesh = Instance.new("SpecialMesh")
  77. Mesh.Name = "Mesh"
  78.  
  79. local random = math.random(1, 2)
  80. local random2 = math.random(1, 3)
  81.  
  82. ------Motor6D
  83.  
  84. local runner = game.Workspace:WaitForChild("refrop")
  85.  
  86. -----variables
  87.  
  88. -----game
  89.  
  90. wait(0.2)
  91. local W = Wo
  92.  
  93. base.Parent = W
  94.  
  95. ---base.World = runner.Torso.Position - Vector3.new(0, 1, 0)
  96.  
  97.  
  98.  
  99.  
  100. Head.Parent = base
  101. Head.Position = runner.Torso.Position + Vector3.new(0, 4.5, 0)
  102. Head.Orientation = Vector3.new(0, 0, 0)
  103. Head.Size = Vector3.new(2, 1, 1)
  104. Head.Anchored = false
  105. Head.Material = Enum.Material.SmoothPlastic
  106.  
  107.  
  108.  
  109. Face.Parent = Head
  110. Face.Texture = "http://www.roblox.com/asset/?id=5400574876"
  111.  
  112.  
  113. Mesh.Parent = Head
  114. Mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  115.  
  116.  
  117. Torso.Parent = base
  118. Torso.Position = runner.Torso.Position + Vector3.new(0, 3, 0)
  119. Torso.Orientation = Vector3.new(0, 0, 0)
  120. Torso.Size = Vector3.new(2, 2, 1)
  121. Torso.Anchored = false
  122.  
  123. Torso.Material = Enum.Material.SmoothPlastic
  124. Torso.CanCollide = false
  125.  
  126. LeftArm.Parent = base
  127. LeftArm.Position = runner.Torso.Position + Vector3.new(-1.47, 3, 0)
  128. LeftArm.Orientation = Vector3.new(0, 0, 0)
  129. LeftArm.Size = Vector3.new(1, 2, 1)
  130. LeftArm.Anchored = false
  131.  
  132. LeftArm.Material = Enum.Material.SmoothPlastic
  133. LeftArm.CanCollide = false
  134.  
  135. RightArm.Parent = base
  136. RightArm.Position = runner.Torso.Position + Vector3.new(1.47, 3, 0)
  137. RightArm.Orientation = Vector3.new(0, 0, 0)
  138. RightArm.Size = Vector3.new(1, 2, 1)
  139. RightArm.Anchored = false
  140.  
  141. RightArm.Material = Enum.Material.SmoothPlastic
  142. RightArm.CanCollide = false
  143.  
  144.  
  145. LeftLeg.Parent = base
  146. LeftLeg.Position = runner.Torso.Position + Vector3.new(-0.5, 1, 0)
  147. LeftLeg.Orientation = Vector3.new(0, 0, 0)
  148. LeftLeg.Size = Vector3.new(1, 2, 1)
  149. LeftLeg.Anchored = false
  150.  
  151. LeftLeg.Material = Enum.Material.SmoothPlastic
  152. LeftLeg.CanCollide = false
  153.  
  154.  
  155.  
  156. RightLeg.Parent = base
  157. RightLeg.Position = runner.Torso.Position + Vector3.new(0.5, 1, 0)
  158. RightLeg.Orientation = Vector3.new(0, 0, 0)
  159. RightLeg.Size = Vector3.new(1, 2, 1)
  160. RightLeg.Anchored = false
  161.  
  162. RightLeg.Material = Enum.Material.SmoothPlastic
  163. RightLeg.CanCollide = false
  164.  
  165. -------body
  166. if random == 1 then
  167.  
  168. Head.BrickColor = BrickColor.new("Cool yellow")
  169. RightArm.BrickColor = BrickColor.new("Cool yellow")
  170. LeftArm.BrickColor = BrickColor.new("Cool yellow")
  171.  
  172. else
  173.  
  174. Head.BrickColor = BrickColor.new("Bright orange")
  175. RightArm.BrickColor = BrickColor.new("Bright orange")
  176. LeftArm.BrickColor = BrickColor.new("Bright orange")
  177.  
  178. end
  179. ---------shirt
  180. if random2 == 1 then
  181.  
  182. Torso.BrickColor = BrickColor.new("Neon orange")
  183. RightLeg.BrickColor = BrickColor.new("Neon orange")
  184. LeftLeg.BrickColor = BrickColor.new("Neon orange")
  185. end
  186.  
  187.  
  188. if random2 == 2 then
  189.  
  190. Torso.BrickColor = BrickColor.new("Black")
  191. RightLeg.BrickColor = BrickColor.new("Black")
  192. LeftLeg.BrickColor = BrickColor.new("Black")
  193. end
  194. if random2 == 3 then
  195.  
  196.  
  197. Torso.BrickColor = BrickColor.new("Baby blue")
  198. RightLeg.BrickColor = BrickColor.new("Baby blue")
  199. LeftLeg.BrickColor = BrickColor.new("Baby blue")
  200.  
  201.  
  202. end
  203.  
  204.  
  205. Humanoid.Parent = base
  206.  
  207. -------------Motor6D
  208.  
  209.  
  210. LeftHip.Parent = Torso
  211. LeftHip.Part0 = Torso
  212. LeftHip.Part1 = LeftLeg
  213.  
  214.  
  215.  
  216. RightHip.Parent = Torso
  217. RightHip.Part0 = Torso
  218. RightHip.Part1 = RightLeg
  219.  
  220.  
  221. Neck.Parent = Torso
  222. Neck.Part0 = Torso
  223. Neck.Part1 = Head
  224.  
  225.  
  226. RightShoulder.Parent = Torso
  227. RightShoulder.Part0 = Torso
  228. RightShoulder.Part1 = RightArm
  229.  
  230.  
  231. LeftShoulder.Parent = Torso
  232. LeftShoulder.Part0 = Torso
  233. LeftShoulder.Part1 = LeftArm
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243. -------------Motor6D
  244.  
  245.  
  246.  
  247.  
  248. -----game
  249.  
  250. -----final
  251.  
  252. Wo.Parent = workspace
  253. Wo:MakeJoints()
  254. local mas1 = Wo:GetChildren()
  255. for i=1,#mas1 do
  256. mas1[i].Parent = workspace
  257. ypcall(function() mas1[i]:MakeJoints() end)
  258. end
  259. Wo:Destroy()
  260. for i=1,#cors do
  261. coroutine.resume(cors[i])
  262. end
  263.  
  264. -----final
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement