refrop

MyDummy (NOTES) v5

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