Advertisement
refrop

MyDummy (NOTES3)

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