Advertisement
Migas3456

test 69

Dec 2nd, 2017
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. p = game.Players.LocalPlayer
  2. --[[Function/s being made!]]
  3. function PlayMusic(ID)
  4. for i, v in pairs (game.Workspace:GetChildren()) do
  5. if v:IsA("Sound") then
  6. v:Remove()
  7. end
  8. end
  9. local music = Instance.new("Sound")
  10. local asset = "rbxassetid://"
  11. music.SoundId = asset .. ID
  12. music.Parent = p.Character.Torso
  13. music.Volume = 10
  14. music.Looped = true
  15. music:Play()
  16. end
  17. --[[Connecting functions!]]
  18. PlayMusic(547457614)
  19. local ScreenGui = Instance.new("ScreenGui")
  20. local Frame = Instance.new("Frame")
  21. local TextLabel = Instance.new("TextLabel")
  22. ScreenGui.Parent = p.PlayerGui
  23. Frame.Parent = ScreenGui
  24. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  25. Frame.Size = UDim2.new(0, 200, 0, 50)
  26. Frame.Style = Enum.FrameStyle.RobloxRound
  27. TextLabel.Parent = Frame
  28. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  29. TextLabel.BackgroundTransparency = 1
  30. TextLabel.Position = UDim2.new(0, -7, 0, 0)
  31. TextLabel.Size = UDim2.new(0, 200, 0, 40)
  32. TextLabel.Font = Enum.Font.SourceSans
  33. TextLabel.FontSize = Enum.FontSize.Size14
  34. TextLabel.Text = "Press \"r\" for a suprise :O"
  35. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  36. TextLabel.TextScaled = true
  37. TextLabel.TextSize = 14
  38. TextLabel.TextWrapped = true
  39. guis=Instance.new("BillboardGui")
  40. guis.Parent= p.Character.Head
  41. guis.Adornee= p.Character.Head
  42. guis.Size=UDim2.new(2.5,0,2.5,0)
  43. guis.StudsOffset=Vector3.new(0,0,0)
  44. guis.AlwaysOnTop = true
  45. TextLabel=Instance.new("TextLabel")
  46. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  47. TextLabel.BackgroundTransparency = 1
  48. TextLabel.BorderColor3 = Color3.new(0.0196078, 0.054902, 0.694118)
  49. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  50. TextLabel.Position=UDim2.new(0, 0, 0, -100)
  51. TextLabel.Font = Enum.Font.Arcade
  52. TextLabel.FontSize = Enum.FontSize.Size32
  53. TextLabel.Text = "OH YEA MR.KRABS"
  54. TextLabel.TextColor3 = Color3.new(0.0196078, 0.054902, 0.694118)
  55. TextLabel.TextSize = 32
  56. TextLabel.Parent = guis
  57. local mrtool = Instance.new("HopperBin") --Gives the player a grab tool.
  58. mrtool.Name = "Boom Boom"
  59. mrtool.Parent = p.Backpack
  60. local Mouse = p:GetMouse()
  61. mrtool.Selected:connect(function()
  62. Mouse.Button1Down:connect(function()
  63. if mrtool.Active == true then
  64. local f9=Instance.new("Part",workspace)f9.Transparency=1;f9.CanCollide=false;f9.Anchored=true;f9.CFrame=Mouse.hit;local fa=Instance.new("Explosion",f9)fa.Position=f9.Position;wait(2)f9:Destroy()fa:Destroy()
  65. end
  66. end)end)
  67.  
  68. Mouse.KeyDown:connect(function(key)
  69. if key == "r" then
  70. ScreenGui:Destroy()
  71. wait( )
  72. TextLabel.Text = "W A K E M E U P"
  73. wait( )
  74. if p.Character.Torso.Sound.SoundId == "rbxassetid://547457614" then
  75. p.Character.Torso.Sound.SoundId = "rbxassetid://328728034"
  76. p.Character.Torso.Sound.Looped = true
  77. p.Character.Torso.Sound.TimePosition = 0
  78. p.Character.Torso.Sound.Volume = 85
  79. end
  80. end
  81. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement