Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local playa = game:GetService("Players").LocalPlayer
- repeat
- wait()
- until playa.Character
- local chara = playa.Character
- local humanoi = chara:WaitForChild("Humanoid")
- local moues = playa:GetMouse()
- local spladowsize = 30
- local exploding = false
- moues.KeyDown:connect(function(key)
- key = key:lower()
- if key == "p" and not exploding then
- exploding = true
- Explode()
- end
- if key == "q" then
- chara.Torso.CFrame = CFrame.new(moues.Hit.p + Vector3.new(0,3,0))
- end
- if key == "z" and not (spladowsize <= -5) then
- spladowsize = spladowsize - 5
- end
- if key == "c" and not (spladowsize <= -5) and not ((spladowsize - 15) <= -5) then
- spladowsize = spladowsize - 15
- end
- if key == "x" then
- spladowsize = spladowsize + 5
- end
- if key == "v" then
- spladowsize = spladowsize + 15
- end
- end)
- coroutine.resume(coroutine.create(function()
- while true do
- humanoi.WalkSpeed = 16
- humanoi.JumpPower = 50
- humanoi.PlatformStand = false
- humanoi.MaxHealth = math.huge
- humanoi.Health = math.huge
- wait()
- end
- end))
- --EXPLOSION
- function Explode()
- local Victim = game.Players.LocalPlayer
- Victim = Victim.Character
- local o1 = Instance.new("Sound")
- o1.Parent = Victim.Head
- o1.SoundId = "rbxassetid://429400881"
- o1:Play()
- o1 = Instance.new("Sound")
- o1.Name = "SoundofPain"
- o1.Parent = Victim.Head
- o1.Volume = 1
- o1.SoundId = "rbxassetid://606862847"
- o1:Play()
- Victim.Head.face.Texture = "http://www.roblox.com/asset/?id=412416747"
- Victim.Head.BrickColor = BrickColor.New("Maroon")
- for i=1, 30 do
- wait()
- Victim.Head.Size = Victim.Head.Size:lerp(Vector3.new(spladowsize / 5,spladowsize / 5,spladowsize / 5), 0.01 * i)
- Victim.Head.CFrame = Victim.Head.CFrame * CFrame.Angles(0,1,0)
- end
- local g = Instance.new("Part", game.Workspace)
- g.BrickColor = BrickColor.new("New Yeller")
- g.Material = Enum.Material.Neon
- g.Anchored = true
- g.Size = Vector3.new(5,5,5)
- g.CanCollide = false
- g.Transparency = 0.4
- g.CFrame = Victim.Head.CFrame
- local eg = Instance.new("Part", game.Workspace)
- eg.BrickColor = BrickColor.new("New Yeller")
- eg.Material = Enum.Material.Neon
- eg.Anchored = true
- eg.Size = Vector3.new(1,2000,1)
- eg.CanCollide = false
- eg.Transparency = 0.4
- eg.CFrame = g.CFrame
- local bg = Instance.new("Part", game.Workspace)
- bg.BrickColor = BrickColor.new("Deep orange")
- bg.Material = Enum.Material.Neon
- bg.Anchored = true
- bg.Size = Vector3.new(5,5,5)
- bg.CanCollide = false
- bg.Transparency = 0
- bg.Shape = "Ball"
- bg.CFrame = g.CFrame
- local PS33 = Instance.new("Sound")
- PS33.Name = "Boom"
- PS33.Parent = workspace
- PS33.SoundId = "rbxassetid://165969964"
- PS33.Volume = 10
- PS33:Play()
- Victim.Head:Destroy()
- for i=1,100 do
- for i,v in pairs(game.Workspace:GetChildren()) do
- local targeto = nil
- if v ~= Victim and v ~= g and v ~= bg and v ~= eg and v.Name ~= "Base" then
- if v:IsA("Model") then
- for l,b in pairs(v:GetChildren()) do
- if b:IsA("Part") or b:IsA("UnionOperation") then
- targeto = b
- end
- end
- end
- if v:IsA("Part") or v:IsA("UnionOperation") then
- targeto = v
- end
- if targeto then
- if (g.Position - targeto.Position).magnitude < (g.Size.Y * 2) then
- targeto.Velocity = targeto.Velocity + ((targeto.Position - g.Position).unit * 1000)
- end
- if (g.Position - targeto.Position).magnitude < g.Size.Y then
- targeto:Destroy()
- end
- end
- end
- wait()
- end
- g.Size = g.Size:lerp(Vector3.new(spladowsize,spladowsize,spladowsize), 0.01 * i)
- g.Transparency = g.Transparency + 0.02
- eg.Size = eg.Size:lerp(Vector3.new(spladowsize / 1.5,2000,spladowsize / 1.5), 0.02 * i)
- eg.Transparency = eg.Transparency + 0.03
- bg.Size = bg.Size:lerp(Vector3.new(spladowsize,spladowsize,spladowsize), 0.01 * i)
- bg.Transparency = bg.Transparency + 0.03
- g.CFrame = g.CFrame * CFrame.Angles(1,1,1)
- bg.CFrame = bg.CFrame * CFrame.Angles(1,1,1)
- wait()
- end
- wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement