refrop

MyDummy (NOTES) v1

Jun 17th, 2021 (edited)
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.30 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. local runner = game.Workspace:WaitForChild("refrop")
  23. local master = game:GetService("Players"):GetPlayerFromCharacter(runner)
  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 Gui = Instance.new("ScreenGui")
  85. Gui.Name = "MyDummy"
  86.  
  87.  
  88. local Button = Instance.new("TextButton")
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95. -----variables
  96.  
  97. -----game
  98.  
  99. wait(0.2)
  100. local W = Wo
  101.  
  102. base.Parent = W
  103.  
  104. ---base.World = runner.Torso.Position - Vector3.new(0, 1, 0)
  105.  
  106.  
  107.  
  108.  
  109. Head.Parent = base
  110. Head.Position = runner.Torso.Position + Vector3.new(0, 4.5, 0)
  111. Head.Orientation = Vector3.new(0, 0, 0)
  112. Head.Size = Vector3.new(2, 1, 1)
  113. Head.Anchored = false
  114. Head.Material = Enum.Material.SmoothPlastic
  115.  
  116.  
  117.  
  118. Face.Parent = Head
  119. Face.Texture = "http://www.roblox.com/asset/?id=5400574876"
  120.  
  121.  
  122. Mesh.Parent = Head
  123. Mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  124.  
  125.  
  126. Torso.Parent = base
  127. Torso.Position = runner.Torso.Position + Vector3.new(0, 3, 0)
  128. Torso.Orientation = Vector3.new(0, 0, 0)
  129. Torso.Size = Vector3.new(2, 2, 1)
  130. Torso.Anchored = false
  131.  
  132. Torso.Material = Enum.Material.SmoothPlastic
  133. Torso.CanCollide = false
  134.  
  135. LeftArm.Parent = base
  136. LeftArm.Position = runner.Torso.Position + Vector3.new(-1.47, 3, 0)
  137. LeftArm.Orientation = Vector3.new(0, 0, 0)
  138. LeftArm.Size = Vector3.new(1, 2, 1)
  139. LeftArm.Anchored = false
  140.  
  141. LeftArm.Material = Enum.Material.SmoothPlastic
  142. LeftArm.CanCollide = false
  143.  
  144. RightArm.Parent = base
  145. RightArm.Position = runner.Torso.Position + Vector3.new(1.47, 3, 0)
  146. RightArm.Orientation = Vector3.new(0, 0, 0)
  147. RightArm.Size = Vector3.new(1, 2, 1)
  148. RightArm.Anchored = false
  149.  
  150. RightArm.Material = Enum.Material.SmoothPlastic
  151. RightArm.CanCollide = false
  152.  
  153.  
  154. LeftLeg.Parent = base
  155. LeftLeg.Position = runner.Torso.Position + Vector3.new(-0.5, 1, 0)
  156. LeftLeg.Orientation = Vector3.new(0, 0, 0)
  157. LeftLeg.Size = Vector3.new(1, 2, 1)
  158. LeftLeg.Anchored = false
  159.  
  160. LeftLeg.Material = Enum.Material.SmoothPlastic
  161. LeftLeg.CanCollide = false
  162.  
  163.  
  164.  
  165. RightLeg.Parent = base
  166. RightLeg.Position = runner.Torso.Position + Vector3.new(0.5, 1, 0)
  167. RightLeg.Orientation = Vector3.new(0, 0, 0)
  168. RightLeg.Size = Vector3.new(1, 2, 1)
  169. RightLeg.Anchored = false
  170.  
  171. RightLeg.Material = Enum.Material.SmoothPlastic
  172. RightLeg.CanCollide = false
  173.  
  174. -------body
  175. if random == 1 then
  176.  
  177. Head.BrickColor = BrickColor.new("Cool yellow")
  178. RightArm.BrickColor = BrickColor.new("Cool yellow")
  179. LeftArm.BrickColor = BrickColor.new("Cool yellow")
  180.  
  181. else
  182.  
  183. Head.BrickColor = BrickColor.new("Bright orange")
  184. RightArm.BrickColor = BrickColor.new("Bright orange")
  185. LeftArm.BrickColor = BrickColor.new("Bright orange")
  186.  
  187. end
  188. ---------shirt
  189. if random2 == 1 then
  190.  
  191. Torso.BrickColor = BrickColor.new("Neon orange")
  192. RightLeg.BrickColor = BrickColor.new("Neon orange")
  193. LeftLeg.BrickColor = BrickColor.new("Neon orange")
  194. end
  195.  
  196.  
  197. if random2 == 2 then
  198.  
  199. Torso.BrickColor = BrickColor.new("Black")
  200. RightLeg.BrickColor = BrickColor.new("Black")
  201. LeftLeg.BrickColor = BrickColor.new("Black")
  202. end
  203. if random2 == 3 then
  204.  
  205.  
  206. Torso.BrickColor = BrickColor.new("Baby blue")
  207. RightLeg.BrickColor = BrickColor.new("Baby blue")
  208. LeftLeg.BrickColor = BrickColor.new("Baby blue")
  209.  
  210.  
  211. end
  212.  
  213.  
  214. Humanoid.Parent = base
  215.  
  216. -------------Motor6D
  217.  
  218.  
  219. LeftHip.Parent = Torso
  220. LeftHip.Part0 = Torso
  221. LeftHip.Part1 = LeftLeg
  222.  
  223.  
  224.  
  225. RightHip.Parent = Torso
  226. RightHip.Part0 = Torso
  227. RightHip.Part1 = RightLeg
  228.  
  229.  
  230. Neck.Parent = Torso
  231. Neck.Part0 = Torso
  232. Neck.Part1 = Head
  233.  
  234.  
  235. RightShoulder.Parent = Torso
  236. RightShoulder.Part0 = Torso
  237. RightShoulder.Part1 = RightArm
  238.  
  239.  
  240. LeftShoulder.Parent = Torso
  241. LeftShoulder.Part0 = Torso
  242. LeftShoulder.Part1 = LeftArm
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252. -------------Motor6D
  253. --------------------------Gui
  254.  
  255. Gui.Parent = master.PlayerGui
  256. Gui.ResetOnSpawn = false
  257.  
  258.  
  259. Button.Parent = master.PlayerGui.MyDummy
  260. Button.Position = UDim2.new(0.497, 0, 0.759, 0)
  261. Button.Size = UDim2.new(0, 95, 0, 50)
  262. Button.Text = "Reset"
  263. Button.TextScaled = true
  264. Button.BackgroundColor3 = Color3.new(0.666667, 0.666667, 1)
  265. Button.TextColor3 = Color3.new(1, 1, 1)
  266. Button.BorderSizePixel = 0
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274. --------------------------Gui
  275.  
  276. -----game
  277.  
  278. -----final
  279.  
  280. Wo.Parent = workspace
  281. Wo:MakeJoints()
  282. local mas1 = Wo:GetChildren()
  283. for i=1,#mas1 do
  284. mas1[i].Parent = workspace
  285. ypcall(function() mas1[i]:MakeJoints() end)
  286. end
  287. Wo:Destroy()
  288. for i=1,#cors do
  289. coroutine.resume(cors[i])
  290. end
  291.  
  292. -----final
  293.  
  294.  
  295. -----functions
  296.  
  297. local player = master
  298. local char = runner
  299. local Dummy = game.Workspace:FindFirstChild("MyDummy")
  300. local Button1 = master.PlayerGui.MyDummy.TextButton
  301.  
  302.  
  303. Button1.MouseButton1Down:Connect(function()
  304.  
  305. local clone = Dummy:clone()
  306.  
  307. wait(0.1)
  308.  
  309. Dummy.Humanoid.Health = 0
  310.  
  311. wait(4)
  312.  
  313.  
  314.  
  315. wait(0.5)
  316. Dummy:remove()
  317.  
  318. clone.Parent = game.Workspace
  319.  
  320. end)
  321.  
  322. ------functions
  323.  
  324.  
Add Comment
Please, Sign In to add comment