Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = game.Players.LocalPlayer
- --[[Function/s being made!]]
- function PlayMusic(ID)
- for i, v in pairs (game.Workspace:GetChildren()) do
- if v:IsA("Sound") then
- v:Remove()
- end
- end
- local music = Instance.new("Sound")
- local asset = "rbxassetid://"
- music.SoundId = asset .. ID
- music.Parent = p.Character.Torso
- music.Volume = 10
- music.Looped = true
- music:Play()
- end
- --[[Connecting functions!]]
- PlayMusic(547457614)
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- ScreenGui.Parent = p.PlayerGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.Size = UDim2.new(0, 200, 0, 50)
- Frame.Style = Enum.FrameStyle.RobloxRound
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Position = UDim2.new(0, -7, 0, 0)
- TextLabel.Size = UDim2.new(0, 200, 0, 40)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.FontSize = Enum.FontSize.Size14
- TextLabel.Text = "Press \"r\" for a suprise :O"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- guis=Instance.new("BillboardGui")
- guis.Parent= p.Character.Head
- guis.Adornee= p.Character.Head
- guis.Size=UDim2.new(2.5,0,2.5,0)
- guis.StudsOffset=Vector3.new(0,0,0)
- guis.AlwaysOnTop = true
- TextLabel=Instance.new("TextLabel")
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.BorderColor3 = Color3.new(0.0196078, 0.054902, 0.694118)
- TextLabel.Size = UDim2.new(1, 0, 1, 0)
- TextLabel.Position=UDim2.new(0, 0, 0, -100)
- TextLabel.Font = Enum.Font.Arcade
- TextLabel.FontSize = Enum.FontSize.Size32
- TextLabel.Text = "OH YEA MR.KRABS"
- TextLabel.TextColor3 = Color3.new(0.0196078, 0.054902, 0.694118)
- TextLabel.TextSize = 32
- TextLabel.Parent = guis
- local mrtool = Instance.new("HopperBin") --Gives the player a grab tool.
- mrtool.Name = "Boom Boom"
- mrtool.Parent = p.Backpack
- local Mouse = p:GetMouse()
- mrtool.Selected:connect(function()
- Mouse.Button1Down:connect(function()
- if mrtool.Active == true then
- 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()
- end
- end)end)
- Mouse.KeyDown:connect(function(key)
- if key == "r" then
- ScreenGui:Destroy()
- wait( )
- TextLabel.Text = "W A K E M E U P"
- wait( )
- if p.Character.Torso.Sound.SoundId == "rbxassetid://547457614" then
- p.Character.Torso.Sound.SoundId = "rbxassetid://328728034"
- p.Character.Torso.Sound.Looped = true
- p.Character.Torso.Sound.TimePosition = 0
- p.Character.Torso.Sound.Volume = 85
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement