Advertisement
refrop

MyDummy

Jun 16th, 2021
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.57 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.  
  80. ------Motor6D
  81.  
  82. local runner = game.Workspace:WaitForChild("refrop")
  83.  
  84. -----variables
  85.  
  86. -----game
  87.  
  88. wait(0.2)
  89. local W = Wo
  90.  
  91. base.Parent = W
  92.  
  93. ---base.World = runner.Torso.Position - Vector3.new(0, 1, 0)
  94.  
  95.  
  96. Head.Parent = base
  97. Head.Position = runner.Torso.Position + Vector3.new(0, 4.5, 0)
  98. Head.Orientation = Vector3.new(0, 0, 0)
  99. Head.Size = Vector3.new(2, 1, 1)
  100. Head.Anchored = false
  101. Head.BrickColor = BrickColor.new("Cool yellow")
  102. Head.Material = Enum.Material.SmoothPlastic
  103.  
  104.  
  105. Face.Parent = Head
  106. Face.Texture = "http://www.roblox.com/asset/?id=5400574876"
  107.  
  108.  
  109. Mesh.Parent = Head
  110. Mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  111.  
  112.  
  113. Torso.Parent = base
  114. Torso.Position = runner.Torso.Position + Vector3.new(0, 3, 0)
  115. Torso.Orientation = Vector3.new(0, 0, 0)
  116. Torso.Size = Vector3.new(2, 2, 1)
  117. Torso.Anchored = false
  118. Torso.BrickColor = BrickColor.new("Neon orange")
  119. Torso.Material = Enum.Material.SmoothPlastic
  120. Torso.CanCollide = false
  121.  
  122. LeftArm.Parent = base
  123. LeftArm.Position = runner.Torso.Position + Vector3.new(-1.47, 3, 0)
  124. LeftArm.Orientation = Vector3.new(0, 0, 0)
  125. LeftArm.Size = Vector3.new(1, 2, 1)
  126. LeftArm.Anchored = false
  127. LeftArm.BrickColor = BrickColor.new("Cool yellow")
  128. LeftArm.Material = Enum.Material.SmoothPlastic
  129. LeftArm.CanCollide = false
  130.  
  131. RightArm.Parent = base
  132. RightArm.Position = runner.Torso.Position + Vector3.new(1.47, 3, 0)
  133. RightArm.Orientation = Vector3.new(0, 0, 0)
  134. RightArm.Size = Vector3.new(1, 2, 1)
  135. RightArm.Anchored = false
  136. RightArm.BrickColor = BrickColor.new("Cool yellow")
  137. RightArm.Material = Enum.Material.SmoothPlastic
  138. RightArm.CanCollide = false
  139.  
  140.  
  141. LeftLeg.Parent = base
  142. LeftLeg.Position = runner.Torso.Position + Vector3.new(-0.5, 1, 0)
  143. LeftLeg.Orientation = Vector3.new(0, 0, 0)
  144. LeftLeg.Size = Vector3.new(1, 2, 1)
  145. LeftLeg.Anchored = false
  146. LeftLeg.BrickColor = BrickColor.new("Neon orange")
  147. LeftLeg.Material = Enum.Material.SmoothPlastic
  148. LeftLeg.CanCollide = false
  149.  
  150.  
  151.  
  152. RightLeg.Parent = base
  153. RightLeg.Position = runner.Torso.Position + Vector3.new(0.5, 1, 0)
  154. RightLeg.Orientation = Vector3.new(0, 0, 0)
  155. RightLeg.Size = Vector3.new(1, 2, 1)
  156. RightLeg.Anchored = false
  157. RightLeg.BrickColor = BrickColor.new("Neon orange")
  158. RightLeg.Material = Enum.Material.SmoothPlastic
  159. RightLeg.CanCollide = false
  160.  
  161.  
  162. Humanoid.Parent = base
  163.  
  164. -------------Motor6D
  165.  
  166.  
  167. LeftHip.Parent = Torso
  168. LeftHip.Part0 = Torso
  169. LeftHip.Part1 = LeftLeg
  170.  
  171.  
  172.  
  173. RightHip.Parent = Torso
  174. RightHip.Part0 = Torso
  175. RightHip.Part1 = RightLeg
  176.  
  177.  
  178. Neck.Parent = Torso
  179. Neck.Part0 = Torso
  180. Neck.Part1 = Head
  181.  
  182.  
  183. RightShoulder.Parent = Torso
  184. RightShoulder.Part0 = Torso
  185. RightShoulder.Part1 = RightArm
  186.  
  187.  
  188. LeftShoulder.Parent = Torso
  189. LeftShoulder.Part0 = Torso
  190. LeftShoulder.Part1 = LeftArm
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200. -------------Motor6D
  201.  
  202.  
  203.  
  204.  
  205. -----game
  206.  
  207. -----final
  208.  
  209. Wo.Parent = workspace
  210. Wo:MakeJoints()
  211. local mas1 = Wo:GetChildren()
  212. for i=1,#mas1 do
  213. mas1[i].Parent = workspace
  214. ypcall(function() mas1[i]:MakeJoints() end)
  215. end
  216. Wo:Destroy()
  217. for i=1,#cors do
  218. coroutine.resume(cors[i])
  219. end
  220.  
  221. -----final
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement