refrop

MyDummy (Beta)

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