Advertisement
refrop

MyDummy (NOTES) v3

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