refrop

MyDummy (NOTES) v2

Jun 17th, 2021 (edited)
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.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. 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. Button.Name = "Duplicate"
  90.  
  91. local Button2 = Instance.new("TextButton")
  92. Button2.Name = "Delete"
  93.  
  94. local Button3 = Instance.new("TextButton")
  95. Button3.Name = "Sing"
  96.  
  97. local Button4 = Instance.new("TextButton")
  98. Button4.Name = "Shut"
  99.  
  100.  
  101.  
  102. -----variables
  103.  
  104. -----game
  105.  
  106. wait(0.2)
  107. local W = Wo
  108.  
  109. base.Parent = W
  110.  
  111. ---base.World = runner.Torso.Position - Vector3.new(0, 1, 0)
  112.  
  113.  
  114.  
  115.  
  116. Head.Parent = base
  117. Head.Position = runner.Torso.Position + Vector3.new(0, 4.5, 0)
  118. Head.Orientation = Vector3.new(0, 0, 0)
  119. Head.Size = Vector3.new(2, 1, 1)
  120. Head.Anchored = false
  121. Head.Material = Enum.Material.SmoothPlastic
  122.  
  123.  
  124.  
  125. Face.Parent = Head
  126. Face.Texture = "http://www.roblox.com/asset/?id=5400574876"
  127.  
  128.  
  129. Mesh.Parent = Head
  130. Mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  131.  
  132.  
  133. Torso.Parent = base
  134. Torso.Position = runner.Torso.Position + Vector3.new(0, 3, 0)
  135. Torso.Orientation = Vector3.new(0, 0, 0)
  136. Torso.Size = Vector3.new(2, 2, 1)
  137. Torso.Anchored = false
  138.  
  139. Torso.Material = Enum.Material.SmoothPlastic
  140. Torso.CanCollide = false
  141.  
  142. LeftArm.Parent = base
  143. LeftArm.Position = runner.Torso.Position + Vector3.new(-1.47, 3, 0)
  144. LeftArm.Orientation = Vector3.new(0, 0, 0)
  145. LeftArm.Size = Vector3.new(1, 2, 1)
  146. LeftArm.Anchored = false
  147.  
  148. LeftArm.Material = Enum.Material.SmoothPlastic
  149. LeftArm.CanCollide = false
  150.  
  151. RightArm.Parent = base
  152. RightArm.Position = runner.Torso.Position + Vector3.new(1.47, 3, 0)
  153. RightArm.Orientation = Vector3.new(0, 0, 0)
  154. RightArm.Size = Vector3.new(1, 2, 1)
  155. RightArm.Anchored = false
  156.  
  157. RightArm.Material = Enum.Material.SmoothPlastic
  158. RightArm.CanCollide = false
  159.  
  160.  
  161. LeftLeg.Parent = base
  162. LeftLeg.Position = runner.Torso.Position + Vector3.new(-0.5, 1, 0)
  163. LeftLeg.Orientation = Vector3.new(0, 0, 0)
  164. LeftLeg.Size = Vector3.new(1, 2, 1)
  165. LeftLeg.Anchored = false
  166.  
  167. LeftLeg.Material = Enum.Material.SmoothPlastic
  168. LeftLeg.CanCollide = false
  169.  
  170.  
  171.  
  172. RightLeg.Parent = base
  173. RightLeg.Position = runner.Torso.Position + Vector3.new(0.5, 1, 0)
  174. RightLeg.Orientation = Vector3.new(0, 0, 0)
  175. RightLeg.Size = Vector3.new(1, 2, 1)
  176. RightLeg.Anchored = false
  177.  
  178. RightLeg.Material = Enum.Material.SmoothPlastic
  179. RightLeg.CanCollide = false
  180.  
  181. -------body
  182. if random == 1 then
  183.  
  184. Head.BrickColor = BrickColor.new("Cool yellow")
  185. RightArm.BrickColor = BrickColor.new("Cool yellow")
  186. LeftArm.BrickColor = BrickColor.new("Cool yellow")
  187.  
  188. else
  189.  
  190. Head.BrickColor = BrickColor.new("Bright orange")
  191. RightArm.BrickColor = BrickColor.new("Bright orange")
  192. LeftArm.BrickColor = BrickColor.new("Bright orange")
  193.  
  194. end
  195. ---------shirt
  196. if random2 == 1 then
  197.  
  198. Torso.BrickColor = BrickColor.new("Neon orange")
  199. RightLeg.BrickColor = BrickColor.new("Neon orange")
  200. LeftLeg.BrickColor = BrickColor.new("Neon orange")
  201. end
  202.  
  203.  
  204. if random2 == 2 then
  205.  
  206. Torso.BrickColor = BrickColor.new("Black")
  207. RightLeg.BrickColor = BrickColor.new("Black")
  208. LeftLeg.BrickColor = BrickColor.new("Black")
  209. end
  210. if random2 == 3 then
  211.  
  212.  
  213. Torso.BrickColor = BrickColor.new("Baby blue")
  214. RightLeg.BrickColor = BrickColor.new("Baby blue")
  215. LeftLeg.BrickColor = BrickColor.new("Baby blue")
  216.  
  217.  
  218. end
  219.  
  220.  
  221. Humanoid.Parent = base
  222.  
  223. -------------Motor6D
  224.  
  225.  
  226. LeftHip.Parent = Torso
  227. LeftHip.Part0 = Torso
  228. LeftHip.Part1 = LeftLeg
  229.  
  230.  
  231.  
  232. RightHip.Parent = Torso
  233. RightHip.Part0 = Torso
  234. RightHip.Part1 = RightLeg
  235.  
  236.  
  237. Neck.Parent = Torso
  238. Neck.Part0 = Torso
  239. Neck.Part1 = Head
  240.  
  241.  
  242. RightShoulder.Parent = Torso
  243. RightShoulder.Part0 = Torso
  244. RightShoulder.Part1 = RightArm
  245.  
  246.  
  247. LeftShoulder.Parent = Torso
  248. LeftShoulder.Part0 = Torso
  249. LeftShoulder.Part1 = LeftArm
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259. -------------Motor6D
  260. --------------------------Gui
  261.  
  262. Gui.Parent = master.PlayerGui
  263. Gui.ResetOnSpawn = false
  264.  
  265.  
  266. Button.Parent = master.PlayerGui.MyDummy
  267. Button.Position = UDim2.new(0.497, 0, 0.759, 0)
  268. Button.Size = UDim2.new(0, 95, 0, 50)
  269. Button.Text = "Duplicate"
  270. Button.TextScaled = true
  271. Button.BackgroundColor3 = Color3.new(0.666667, 0.666667, 1)
  272. Button.TextColor3 = Color3.new(1, 1, 1)
  273. Button.BorderSizePixel = 0
  274.  
  275.  
  276. Button2.Parent = master.PlayerGui.MyDummy
  277. Button2.Position = UDim2.new(0.597, 0, 0.759, 0)
  278. Button2.Size = UDim2.new(0, 95, 0, 50)
  279. Button2.Text = "Delete"
  280. Button2.TextScaled = true
  281. Button2.BackgroundColor3 = Color3.new(0.666667, 0.666667, 1)
  282. Button2.TextColor3 = Color3.new(1, 1, 1)
  283. Button2.BorderSizePixel = 0
  284.  
  285. Button3.Parent = master.PlayerGui.MyDummy
  286. Button3.Position = UDim2.new(0.397, 0, 0.759, 0)
  287. Button3.Size = UDim2.new(0, 95, 0, 50)
  288. Button3.Text = "Sing"
  289. Button3.TextScaled = true
  290. Button3.BackgroundColor3 = Color3.new(0.666667, 0.666667, 1)
  291. Button3.TextColor3 = Color3.new(1, 1, 1)
  292. Button3.BorderSizePixel = 0
  293.  
  294. Button4.Parent = master.PlayerGui.MyDummy
  295. Button4.Position = UDim2.new(0.397, 0, 0.859, 0)
  296. Button4.Size = UDim2.new(0, 95, 0, 50)
  297. Button4.Text = "Shut"
  298. Button4.TextScaled = true
  299. Button4.BackgroundColor3 = Color3.new(0.666667, 0.666667, 1)
  300. Button4.TextColor3 = Color3.new(1, 1, 1)
  301. Button4.BorderSizePixel = 0
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310. --------------------------Gui
  311.  
  312. -----game
  313.  
  314. -----final
  315.  
  316. Wo.Parent = workspace
  317. Wo:MakeJoints()
  318. local mas1 = Wo:GetChildren()
  319. for i=1,#mas1 do
  320. mas1[i].Parent = workspace
  321. ypcall(function() mas1[i]:MakeJoints() end)
  322. end
  323. Wo:Destroy()
  324. for i=1,#cors do
  325. coroutine.resume(cors[i])
  326. end
  327.  
  328. -----final
  329.  
  330.  
  331. -----functions
  332.  
  333. local player = master
  334. local char = runner
  335. local Dummy = game.Workspace:FindFirstChild("MyDummy")
  336. local Button1 = master.PlayerGui.MyDummy.Duplicate
  337. local Button2 = master.PlayerGui.MyDummy.Delete
  338. local Button3 = master.PlayerGui.MyDummy.Sing
  339. local Button4 = master.PlayerGui.MyDummy.Shut
  340. local music = Instance.new("Sound")
  341. local light = Instance.new("PointLight")
  342.  
  343. music.Looped = true
  344.  
  345.  
  346. Button1.MouseButton1Down:Connect(function()
  347.  
  348. local clone = Dummy:clone()
  349.  
  350.  
  351. wait(0.5)
  352.  
  353.  
  354. clone.Parent = game.Workspace
  355.  
  356.  
  357. end)
  358.  
  359. Button2.MouseButton1Down:Connect(function()
  360.  
  361.  
  362. Dummy:remove()
  363.  
  364.  
  365. end)
  366.  
  367. Button3.MouseButton1Down:Connect(function()
  368.  
  369. local mix = math.random(1, 5)
  370.  
  371.  
  372. music.Playing = false
  373.  
  374. wait(1)
  375.  
  376. if mix == 1 then
  377.  
  378. music.Parent = Dummy.Head
  379. music.Playing = true
  380. music.Volume = 5
  381. music.SoundId = "rbxassetid://604911505"
  382. music.TimePosition = 0
  383.  
  384. light.Parent = Dummy.Head
  385. light.Brightness = 2
  386. light.Range = 12
  387. light.Enabled = true
  388. light.Color = Color3.new(1, 0.666667, 1)
  389.  
  390. end
  391.  
  392. if mix == 2 then
  393.  
  394. music.Parent = Dummy.Head
  395. music.Playing = true
  396. music.Volume = 5
  397. music.SoundId = "rbxassetid://6769399199"
  398. music.TimePosition = 0
  399.  
  400. light.Parent = Dummy.Head
  401. light.Brightness = 2
  402. light.Range = 12
  403. light.Enabled = true
  404. light.Color = Color3.new(1, 0.333333, 0.498039)
  405.  
  406. end
  407.  
  408. if mix == 3 then
  409.  
  410. music.Parent = Dummy.Head
  411. music.Playing = true
  412. music.Volume = 5
  413. music.SoundId = "rbxassetid://4652222971"
  414. music.TimePosition = 0
  415.  
  416. light.Parent = Dummy.Head
  417. light.Brightness = 2
  418. light.Range = 12
  419. light.Enabled = true
  420. light.Color = Color3.new(0.666667, 0.666667, 1)
  421.  
  422. end
  423.  
  424. if mix == 4 then
  425.  
  426. music.Parent = Dummy.Head
  427. music.Playing = true
  428. music.Volume = 5
  429. music.SoundId = "rbxassetid://1425570716"
  430. music.TimePosition = 0
  431.  
  432. light.Parent = Dummy.Head
  433. light.Brightness = 2
  434. light.Range = 12
  435. light.Enabled = true
  436. light.Color = Color3.new(1, 0.666667, 0.498039)
  437.  
  438. end
  439.  
  440. if mix == 5 then
  441.  
  442. music.Parent = Dummy.Head
  443. music.Playing = true
  444. music.Volume = 5
  445. music.SoundId = "rbxassetid://2533289322"
  446. music.TimePosition = 0
  447.  
  448. light.Parent = Dummy.Head
  449. light.Brightness = 2
  450. light.Range = 12
  451. light.Enabled = true
  452. light.Color = Color3.new(1, 0.666667, 0)
  453.  
  454. end
  455.  
  456. Button4.MouseButton1Down:Connect(function()
  457.  
  458. Dummy.Head.Sound.Playing = false
  459. Dummy.Head.PointLight.Enabled = false
  460.  
  461. end)
  462.  
  463.  
  464.  
  465.  
  466. end)
  467.  
  468.  
  469.  
  470.  
  471. ------functions
  472.  
  473.  
Add Comment
Please, Sign In to add comment