Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local chr = owner.Character
- local root = chr.HumanoidRootPart
- booming = false
- local dogGui = Instance.new("ScreenGui")
- dogGui.Name = "dogImg"
- local dogImg = Instance.new("ImageLabel")
- dogImg.Size = UDim2.new(0.5, 0, 0.5, 0)
- dogImg.Position = UDim2.new(0.25, 0, 0.25, 0)
- dogImg.BorderSizePixel = 0
- dogImg.BackgroundColor3 = Color3.new(1, 1, 1)
- dogImg.Image = "rbxassetid://7399605928"
- dogImg.BackgroundTransparency = 1
- dogImg.ImageTransparency = 1
- dogImg.Parent = dogGui
- local boom = Instance.new("Sound")
- boom.SoundId = "rbxassetid://6823153536"
- boom.Volume = 1
- boom.PlayOnRemove = true
- function dog(person)
- local gui = dogGui:Clone()
- gui.Parent = person.PlayerGui
- local dogClone = gui.ImageLabel
- local tweenTime = Random.new():NextNumber(0.25, 0.5)
- local randomSize = Random.new():NextNumber(0.75, 1.25)
- local randomPosX = Random.new():NextNumber(-0.125, 0.125)
- local randomPosY = Random.new():NextNumber(-0.125, 0.125)
- local dogTween = game:GetService"TweenService":Create(
- dogClone,
- TweenInfo.new(tweenTime, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out),
- {Size = UDim2.new(randomSize, 0, randomSize, 0), Position = UDim2.new(randomPosX, 0, randomPosY, 0), ImageTransparency = 0}
- )
- dogTween:Play()
- task.spawn(function()
- task.wait(0.5)
- local dogTween2 = game:GetService"TweenService":Create(
- dogClone,
- TweenInfo.new(tweenTime, Enum.EasingStyle.Sine, Enum.EasingDirection.Out),
- {ImageTransparency = 1}
- )
- dogTween2:Play()
- task.wait(0.25)
- end)
- local explosion = boom:Clone()
- explosion.Parent = person.PlayerGui
- explosion:Play()
- explosion:Destroy()
- task.wait(Random.new():NextNumber(0.01, 0.1))
- end
- local remote = Instance.new('RemoteEvent')
- remote.Name = 'KeybindConnection'
- remote.Parent = owner:FindFirstChildOfClass("PlayerGui")
- NLS([[
- local chr = game:GetService("Players").LocalPlayer
- repeat wait() until script.Parent
- local remote = script.Parent
- local UIS = game:GetService('UserInputService')
- UIS.InputBegan:Connect(function(key,g)
- if not g then
- remote:FireServer(key.KeyCode,'keydown')
- end
- end)
- UIS.InputEnded:Connect(function(key)
- remote:FireServer(key.KeyCode,'keyup')
- end)
- ]],remote)
- remote.OnServerEvent:Connect(function(lplr,key,input)
- if lplr == owner then else return end
- if key == Enum.KeyCode.Q then
- if input == "keydown" then
- boomed = not boomed
- end
- end
- end)
- game:GetService("RunService").Heartbeat:Connect(function()
- if boomed == true then
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- dog(v)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement