refrop

MyDummy (NOTES2)

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