Advertisement
Roblox_Xploits

Sans the boombox

Mar 22nd, 2017
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2. local c = Player.Character
  3. if not c or not c.Parent then
  4. c = Player.CharacterAdded:wait()
  5. end
  6.  
  7. wait(1)
  8.  
  9. local radio = Instance.new("Part",c)
  10. radio.Name = "Radio"
  11. radio.CanCollide = false
  12. radio.Anchored = true
  13. radio.FormFactor = "Custom"
  14. radio.Size = Vector3.new(3.2, 1.43, 0.8)
  15. radio.CFrame = c.Torso.CFrame * CFrame.new(0,0,.8)
  16. radio.CFrame = radio.CFrame * CFrame.fromEulerAnglesXYZ(0,3.15,0)
  17. radio.CFrame = radio.CFrame * CFrame.fromEulerAnglesXYZ(0,0,-.7)
  18.  
  19. local mesh = Instance.new("SpecialMesh",radio)
  20. mesh.MeshId = "rbxassetid://430073345"
  21. mesh.TextureId = "rbxassetid://430073362"
  22. game:GetService("Chat"):Chat(Player.Character.Head, "Nyeheehehee Instances loaded", "Blue")
  23.  
  24. local weld = Instance.new("Weld",radio)
  25. weld.Part0 = c.Torso
  26. weld.Part1 = radio
  27. weld.C0 = c.Torso.CFrame:inverse()
  28. weld.C1 = radio.CFrame:inverse()
  29. radio.Anchored = false
  30.  
  31. local sound = Instance.new("Sound",radio)
  32. sound.Name = "Music"
  33. sound.Looped = true
  34. sound.Volume = 1
  35.  
  36. local gui = Instance.new("ScreenGui",Player.PlayerGui)
  37.  
  38. local frame = Instance.new("Frame",gui)
  39. frame.BackgroundColor3 = Color3.new(253, 237, 10)
  40. frame.BorderColor3 = Color3.new(255,255,255)
  41. frame.BorderSizePixel = 2
  42. frame.Size = UDim2.new(0,300,0,200)
  43. frame.Position = UDim2.new(0,20,.5,-100)
  44.  
  45. local playb = Instance.new("TextButton",frame)
  46. playb.BackgroundColor3 = Color3.new(0,85/255,0)
  47. playb.BorderColor3 = Color3.new(255,255,255)
  48. playb.BorderSizePixel = 2
  49. playb.Size = UDim2.new(.3,0,.2,0)
  50. playb.Position = UDim2.new(.1,0,.7,0)
  51. playb.Text = "PLAY"
  52. playb.TextColor3 = Color3.new(255,255,255)
  53. playb.TextScaled = true
  54.  
  55. local stopb = Instance.new("TextButton",frame)
  56. stopb.BackgroundColor3 = Color3.new(170/255,0,0)
  57. stopb.BorderColor3 = Color3.new(255,255,255)
  58. stopb.BorderSizePixel = 2
  59. stopb.Size = UDim2.new(.3,0,.2,0)
  60. stopb.Position = UDim2.new(.6,0,.7,0)
  61. stopb.Text = "STOP"
  62. stopb.TextColor3 = Color3.new(255,255,255)
  63. stopb.TextScaled = true
  64.  
  65. local stipb = Instance.new("TextBox",frame)
  66. stipb.BackgroundColor3 = Color3.new(0,0,127/255)
  67. stipb.BorderColor3 = Color3.new(255,255,255)
  68. stipb.BorderSizePixel = 2
  69. stipb:TweenSize(UDim2.new(.5,0,.25,0),"Out","Quad",1,true)
  70. stipb.Position = UDim2.new(.25,0,.3,0)
  71. stipb.Text = "SoundId:"
  72. stipb.TextColor3 = Color3.new(255,255,255)
  73. stipb.TextScaled = true
  74.  
  75. local label = Instance.new("TextLabel",frame)
  76. label.Text = "Made By arceus3270"
  77. label.TextScaled = true
  78. label:TweenSize(UDim2.new(1,0,.2,0))
  79. label.TextColor3 = Color3.new(255,255,255)
  80. label.BackgroundTransparency = 1
  81. --stipb.Size = UDim2.new(1,0,.2,0)
  82.  
  83. local Playing = false
  84.  
  85. stipb.Changed:connect(function()
  86. sound.SoundId = "rbxassetid://" .. stipb.Text
  87. end)
  88.  
  89. playb.MouseButton1Click:connect(function()
  90. sound:Play()
  91. Playing = true
  92. end)
  93.  
  94. stopb.MouseButton1Click:connect(function()
  95. sound:Stop()
  96. Playing = false
  97. end)
  98.  
  99. while true do
  100. if Playing then
  101. mesh.Scale = Vector3.new(1.1,1.1,1.1)
  102. wait(.2)
  103. mesh.Scale = Vector3.new(1,1,1)
  104. end
  105. wait(.2)
  106. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement