Script:

mouseclick1down:function()
local player = game.Players.LocalPlayer

local gui = Instance.new("ScreenGui")
local tint = Instance.new("Frame")
tint.Parent = gui
tint.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
tint.BackgroundTransparency = .5
tint.Size = UDim2.new(UDim.new(1, 0), UDim.new(1, 0))
tint.Position = UDim2.new(UDim.new(0, 0), UDim.new(0, 0))
local image = Instance.new("ImageLabel")
image.Parent = gui
image.Size = UDim2.new(UDim.new(1, 0), UDim.new(1, 0))
image.Position = UDim2.new(UDim.new(0, 0), UDim.new(0, 0))
image.Image = "http://www.roblox.com/asset/?id=5274798835"
image.BackgroundTransparency = 1

local sound = Instance.new("Sound")
sound.Volume = 10
sound.SoundId = "rbxassetid://145778741"
local distortion = Instance.new("DistortionSoundEffect")
distortion.Level = 1
distortion.Parent = sound

if not player.Character then
    player.CharacterAdded:wait()
end

local character = player.Character
local humanoid

while wait() do
    if character:FindFirstChildOfClass("Humanoid") then
        humanoid = character:FindFirstChildOfClass("Humanoid")
        break
    end
end

humanoid.Died:Connect(function()
    gui.Parent = player.PlayerGui
    sound.Parent = game.CoreGui
    sound.Playing = true
    sound.TimePosition = math.random(0, 119)
    wait(5)
    game:shutdown()
end)

1 comment

0

This is local script ofv