Advertisement
refrop

MyDummy (NOTES) v4

Jun 17th, 2021
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.08 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. local Button5 = Instance.new("TextButton")
  101. Button5.Name = "Close"
  102.  
  103.  
  104. -------Talk
  105.  
  106. local Bi = Instance.new("BillboardGui")
  107. Bi.Name = "talk"
  108.  
  109. local text = Instance.new("TextBox")
  110.  
  111. -------Talk
  112.  
  113.  
  114. -----variables
  115.  
  116. -----game
  117.  
  118. wait(0.2)
  119. local W = Wo
  120.  
  121. base.Parent = W
  122.  
  123. ---base.World = runner.Torso.Position - Vector3.new(0, 1, 0)
  124.  
  125.  
  126.  
  127.  
  128. Head.Parent = base
  129. Head.Position = runner.Torso.Position + Vector3.new(0, 4.5, 0)
  130. Head.Orientation = Vector3.new(0, 0, 0)
  131. Head.Size = Vector3.new(2, 1, 1)
  132. Head.Anchored = false
  133. Head.Material = Enum.Material.SmoothPlastic
  134.  
  135.  
  136. Bi.Parent = Head
  137. Bi.AlwaysOnTop = true
  138. Bi.Enabled = true
  139. Bi.Size = UDim2.new(0, 200, 0, 50)
  140. Bi.StudsOffset = Vector3.new(0, 2, 0)
  141.  
  142.  
  143.  
  144. text.Parent = Bi
  145. text.TextScaled = true
  146. text.BackgroundTransparency = 1
  147. text.Text = "..."
  148. text.Size = UDim2.new(1, 0, 1, 0)
  149.  
  150.  
  151.  
  152.  
  153. Face.Parent = Head
  154. Face.Texture = "http://www.roblox.com/asset/?id=5400574876"
  155.  
  156.  
  157. Mesh.Parent = Head
  158. Mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  159.  
  160.  
  161. Torso.Parent = base
  162. Torso.Position = runner.Torso.Position + Vector3.new(0, 3, 0)
  163. Torso.Orientation = Vector3.new(0, 0, 0)
  164. Torso.Size = Vector3.new(2, 2, 1)
  165. Torso.Anchored = false
  166.  
  167. Torso.Material = Enum.Material.SmoothPlastic
  168. Torso.CanCollide = false
  169.  
  170. LeftArm.Parent = base
  171. LeftArm.Position = runner.Torso.Position + Vector3.new(-1.47, 3, 0)
  172. LeftArm.Orientation = Vector3.new(0, 0, 0)
  173. LeftArm.Size = Vector3.new(1, 2, 1)
  174. LeftArm.Anchored = false
  175.  
  176. LeftArm.Material = Enum.Material.SmoothPlastic
  177. LeftArm.CanCollide = false
  178.  
  179. RightArm.Parent = base
  180. RightArm.Position = runner.Torso.Position + Vector3.new(1.47, 3, 0)
  181. RightArm.Orientation = Vector3.new(0, 0, 0)
  182. RightArm.Size = Vector3.new(1, 2, 1)
  183. RightArm.Anchored = false
  184.  
  185. RightArm.Material = Enum.Material.SmoothPlastic
  186. RightArm.CanCollide = false
  187.  
  188.  
  189. LeftLeg.Parent = base
  190. LeftLeg.Position = runner.Torso.Position + Vector3.new(-0.5, 1, 0)
  191. LeftLeg.Orientation = Vector3.new(0, 0, 0)
  192. LeftLeg.Size = Vector3.new(1, 2, 1)
  193. LeftLeg.Anchored = false
  194.  
  195. LeftLeg.Material = Enum.Material.SmoothPlastic
  196. LeftLeg.CanCollide = false
  197.  
  198.  
  199.  
  200. RightLeg.Parent = base
  201. RightLeg.Position = runner.Torso.Position + Vector3.new(0.5, 1, 0)
  202. RightLeg.Orientation = Vector3.new(0, 0, 0)
  203. RightLeg.Size = Vector3.new(1, 2, 1)
  204. RightLeg.Anchored = false
  205.  
  206. RightLeg.Material = Enum.Material.SmoothPlastic
  207. RightLeg.CanCollide = false
  208.  
  209. -------body
  210. if random == 1 then
  211.  
  212. Head.BrickColor = BrickColor.new("Cool yellow")
  213. RightArm.BrickColor = BrickColor.new("Cool yellow")
  214. LeftArm.BrickColor = BrickColor.new("Cool yellow")
  215.  
  216. else
  217.  
  218. Head.BrickColor = BrickColor.new("Bright orange")
  219. RightArm.BrickColor = BrickColor.new("Bright orange")
  220. LeftArm.BrickColor = BrickColor.new("Bright orange")
  221.  
  222. end
  223. ---------shirt
  224. if random2 == 1 then
  225.  
  226. Torso.BrickColor = BrickColor.new("Neon orange")
  227. RightLeg.BrickColor = BrickColor.new("Neon orange")
  228. LeftLeg.BrickColor = BrickColor.new("Neon orange")
  229. end
  230.  
  231.  
  232. if random2 == 2 then
  233.  
  234. Torso.BrickColor = BrickColor.new("Black")
  235. RightLeg.BrickColor = BrickColor.new("Black")
  236. LeftLeg.BrickColor = BrickColor.new("Black")
  237. end
  238. if random2 == 3 then
  239.  
  240.  
  241. Torso.BrickColor = BrickColor.new("Baby blue")
  242. RightLeg.BrickColor = BrickColor.new("Baby blue")
  243. LeftLeg.BrickColor = BrickColor.new("Baby blue")
  244.  
  245.  
  246. end
  247.  
  248.  
  249. Humanoid.Parent = base
  250. Humanoid.NameOcclusion = Enum.NameOcclusion.OccludeAll
  251. Humanoid.DisplayName = " "
  252. -------------Motor6D
  253.  
  254.  
  255. LeftHip.Parent = Torso
  256. LeftHip.Part0 = Torso
  257. LeftHip.Part1 = LeftLeg
  258.  
  259.  
  260.  
  261. RightHip.Parent = Torso
  262. RightHip.Part0 = Torso
  263. RightHip.Part1 = RightLeg
  264.  
  265.  
  266. Neck.Parent = Torso
  267. Neck.Part0 = Torso
  268. Neck.Part1 = Head
  269.  
  270.  
  271. RightShoulder.Parent = Torso
  272. RightShoulder.Part0 = Torso
  273. RightShoulder.Part1 = RightArm
  274.  
  275.  
  276. LeftShoulder.Parent = Torso
  277. LeftShoulder.Part0 = Torso
  278. LeftShoulder.Part1 = LeftArm
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288. -------------Motor6D
  289. --------------------------Gui
  290.  
  291. Gui.Parent = master.PlayerGui
  292. Gui.ResetOnSpawn = false
  293.  
  294.  
  295. Button.Parent = master.PlayerGui.MyDummy
  296. Button.Position = UDim2.new(0.497, 0, 0.759, 0)
  297. Button.Size = UDim2.new(0, 95, 0, 50)
  298. Button.Text = "Duplicate"
  299. Button.TextScaled = true
  300. Button.BackgroundColor3 = Color3.new(0.666667, 0.666667, 1)
  301. Button.TextColor3 = Color3.new(1, 1, 1)
  302. Button.BorderSizePixel = 0
  303.  
  304.  
  305. Button2.Parent = master.PlayerGui.MyDummy
  306. Button2.Position = UDim2.new(0.597, 0, 0.759, 0)
  307. Button2.Size = UDim2.new(0, 95, 0, 50)
  308. Button2.Text = "Clean"
  309. Button2.TextScaled = true
  310. Button2.BackgroundColor3 = Color3.new(0.666667, 0.666667, 1)
  311. Button2.TextColor3 = Color3.new(1, 1, 1)
  312. Button2.BorderSizePixel = 0
  313.  
  314. Button3.Parent = master.PlayerGui.MyDummy
  315. Button3.Position = UDim2.new(0.397, 0, 0.759, 0)
  316. Button3.Size = UDim2.new(0, 95, 0, 50)
  317. Button3.Text = "Sing"
  318. Button3.TextScaled = true
  319. Button3.BackgroundColor3 = Color3.new(0.666667, 0.666667, 1)
  320. Button3.TextColor3 = Color3.new(1, 1, 1)
  321. Button3.BorderSizePixel = 0
  322.  
  323. Button4.Parent = master.PlayerGui.MyDummy
  324. Button4.Position = UDim2.new(0.397, 0, 0.859, 0)
  325. Button4.Size = UDim2.new(0, 95, 0, 50)
  326. Button4.Text = "Shut"
  327. Button4.TextScaled = true
  328. Button4.BackgroundColor3 = Color3.new(0.666667, 0.666667, 1)
  329. Button4.TextColor3 = Color3.new(1, 1, 1)
  330. Button4.BorderSizePixel = 0
  331.  
  332. Button5.Parent = master.PlayerGui.MyDummy
  333. Button5.Position = UDim2.new(0.497, 0, 0.659, 0)
  334. Button5.Size = UDim2.new(0, 95, 0, 50)
  335. Button5.Text = "X"
  336. Button5.TextScaled = true
  337. Button5.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.435294)
  338. Button5.TextColor3 = Color3.new(1, 1, 1)
  339. Button5.BorderSizePixel = 0
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348. --------------------------Gui
  349.  
  350. text.TextColor3 = Torso.Color
  351.  
  352. -----game
  353.  
  354. -----final
  355.  
  356. Wo.Parent = workspace
  357. Wo:MakeJoints()
  358. local mas1 = Wo:GetChildren()
  359. for i=1,#mas1 do
  360. mas1[i].Parent = workspace
  361. ypcall(function() mas1[i]:MakeJoints() end)
  362. end
  363. Wo:Destroy()
  364. for i=1,#cors do
  365. coroutine.resume(cors[i])
  366. end
  367.  
  368. -----final
  369.  
  370.  
  371. -----functions
  372.  
  373. local player = master
  374. local char = runner
  375. local Dummy = game.Workspace:FindFirstChild("MyDummy")
  376. local Gui = master.PlayerGui.MyDummy
  377. local Button1 = master.PlayerGui.MyDummy.Duplicate
  378. local Button2 = master.PlayerGui.MyDummy.Delete
  379. local Button3 = master.PlayerGui.MyDummy.Sing
  380. local Button4 = master.PlayerGui.MyDummy.Shut
  381. local Button5 = master.PlayerGui.MyDummy.Close
  382. local music = Instance.new("Sound")
  383. local light = Instance.new("PointLight")
  384. local talk = Dummy.Head.talk.TextBox.Text
  385.  
  386. music.Looped = true
  387.  
  388.  
  389. Button1.MouseButton1Down:Connect(function()
  390.  
  391. local clone = Dummy:clone()
  392.  
  393.  
  394. wait(0.5)
  395.  
  396.  
  397. clone.Parent = game.Workspace
  398.  
  399.  
  400. end)
  401.  
  402. Button2.MouseButton1Down:Connect(function()
  403.  
  404. local runDummyScript = function(f,scri)
  405. local oldenv = getfenv(f)
  406. local newenv = setmetatable({}, {
  407. __index = function(_, k)
  408. if k:lower() == 'script' then
  409. return script
  410. else
  411. return oldenv[k]
  412. end
  413. end
  414. })
  415. setfenv(f, newenv)
  416. ypcall(function() f() end)
  417. end
  418.  
  419.  
  420. cors = {}
  421. Wo = Instance.new("Model",game:GetService("Lighting"))
  422. Wo.Name = "CompiledModel"
  423.  
  424. -----variables
  425.  
  426.  
  427.  
  428. local base = Instance.new("Part")
  429. base.Name = "clean"
  430.  
  431. local Bi = Instance.new("BillboardGui")
  432.  
  433. local text = Instance.new("TextBox")
  434.  
  435. local runner = game.Workspace:WaitForChild("MyDummy")
  436.  
  437. -----variables
  438.  
  439. -----game
  440.  
  441. wait(0.2)
  442. local W = Wo
  443.  
  444. base.Parent = W
  445. base.Position = runner.Torso.Position + Vector3.new(0, 1, 0)
  446. base.Orientation = Vector3.new(0, 0, 0)
  447. base.Size = Vector3.new(2048, 2048, 2048)
  448. base.Anchored = false
  449. base.BrickColor = BrickColor.new("Neon orange")
  450. base.Material = Enum.Material.Neon
  451. base.Transparency = 0.5
  452. base.CanCollide = false
  453.  
  454.  
  455. Bi.Parent = base
  456. Bi.AlwaysOnTop = true
  457. Bi.Enabled = true
  458. Bi.Size = UDim2.new(0, 200, 0, 50)
  459.  
  460. text.Parent = Bi
  461. text.TextScaled = true
  462. text.BackgroundTransparency = 1
  463. text.Text = "Cleaning..."
  464. text.Size = UDim2.new(1, 0, 1, 0)
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474. -----game
  475.  
  476.  
  477.  
  478. -----final
  479.  
  480. Wo.Parent = workspace
  481. Wo:MakeJoints()
  482. local mas1 = Wo:GetChildren()
  483. for i=1,#mas1 do
  484. mas1[i].Parent = workspace
  485. ypcall(function() mas1[i]:MakeJoints() end)
  486. end
  487. Wo:Destroy()
  488. for i=1,#cors do
  489. coroutine.resume(cors[i])
  490. end
  491.  
  492. -----final
  493.  
  494. -----functions
  495.  
  496. game.Workspace.clean.Touched:Connect(function(hit)
  497.  
  498. repeat
  499.  
  500. local char = hit.Parent
  501.  
  502. char:destroy()
  503.  
  504. until char ~= nil
  505.  
  506. text.Text = "Server Cleaned"
  507. wait(2)
  508.  
  509. game.Workspace.clean:destroy()
  510.  
  511.  
  512.  
  513. end)
  514.  
  515. -----functions
  516.  
  517.  
  518. end)
  519.  
  520. Button3.MouseButton1Down:Connect(function()
  521.  
  522. local mix = math.random(1, 5)
  523.  
  524.  
  525. music.Playing = false
  526. Dummy.Head.talk.TextBox.Text = "Yes master, ill sing for you"
  527.  
  528. wait(1)
  529.  
  530. if mix == 1 then
  531.  
  532. Dummy.Head.talk.TextBox.Text = "Now Playing: Hatsune Miku - The Singing Passion of Hatsune Miku"
  533.  
  534. music.Parent = Dummy.Head
  535. music.Playing = true
  536. music.Volume = 5
  537. music.SoundId = "rbxassetid://604911505"
  538. music.TimePosition = 0
  539.  
  540. light.Parent = Dummy.Head
  541. light.Brightness = 2
  542. light.Range = 12
  543. light.Enabled = true
  544. light.Color = Color3.new(1, 0.666667, 1)
  545.  
  546. end
  547.  
  548. if mix == 2 then
  549.  
  550. Dummy.Head.talk.TextBox.Text = "Now Playing: HATSUNE MIKU - MAIRIEUX"
  551.  
  552. music.Parent = Dummy.Head
  553. music.Playing = true
  554. music.Volume = 5
  555. music.SoundId = "rbxassetid://6769399199"
  556. music.TimePosition = 0
  557.  
  558. light.Parent = Dummy.Head
  559. light.Brightness = 2
  560. light.Range = 12
  561. light.Enabled = true
  562. light.Color = Color3.new(1, 0.333333, 0.498039)
  563.  
  564. end
  565.  
  566. if mix == 3 then
  567.  
  568. Dummy.Head.talk.TextBox.Text = "Now Playing: Deltarune - Lost Girl (Noelle's Theme)"
  569.  
  570. music.Parent = Dummy.Head
  571. music.Playing = true
  572. music.Volume = 5
  573. music.SoundId = "rbxassetid://4652222971"
  574. music.TimePosition = 0
  575.  
  576. light.Parent = Dummy.Head
  577. light.Brightness = 2
  578. light.Range = 12
  579. light.Enabled = true
  580. light.Color = Color3.new(0.666667, 0.666667, 1)
  581.  
  582. end
  583.  
  584. if mix == 4 then
  585.  
  586. Dummy.Head.talk.TextBox.Text = "Now Playing: Snails House - Pixel Galaxy"
  587.  
  588. music.Parent = Dummy.Head
  589. music.Playing = true
  590. music.Volume = 5
  591. music.SoundId = "rbxassetid://1425570716"
  592. music.TimePosition = 0
  593.  
  594. light.Parent = Dummy.Head
  595. light.Brightness = 2
  596. light.Range = 12
  597. light.Enabled = true
  598. light.Color = Color3.new(1, 0.666667, 0.498039)
  599.  
  600. end
  601.  
  602. if mix == 5 then
  603.  
  604. Dummy.Head.talk.TextBox.Text = "Now Playing: DELTARUNE - End Credits Song"
  605.  
  606. music.Parent = Dummy.Head
  607. music.Playing = true
  608. music.Volume = 5
  609. music.SoundId = "rbxassetid://2533289322"
  610. music.TimePosition = 0
  611.  
  612. light.Parent = Dummy.Head
  613. light.Brightness = 2
  614. light.Range = 12
  615. light.Enabled = true
  616. light.Color = Color3.new(1, 0.666667, 0)
  617.  
  618. end
  619.  
  620. Button4.MouseButton1Down:Connect(function()
  621.  
  622. Dummy.Head.talk.TextBox.Text = "Yes master"
  623.  
  624. Dummy.Head.Sound.Playing = false
  625. Dummy.Head.PointLight.Enabled = false
  626.  
  627. wait(2)
  628.  
  629. Dummy.Head.talk.TextBox.Text = "..."
  630.  
  631. end)
  632.  
  633.  
  634.  
  635.  
  636. end)
  637.  
  638. Button5.MouseButton1Down:Connect(function()
  639.  
  640. master.PlayerGui.MyDummy:remove()
  641.  
  642. end)
  643.  
  644.  
  645.  
  646.  
  647. ------functions
  648.  
  649.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement