Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --By iiJoeCats (could be the last script for 2019)
- local mouse = game.Players.LocalPlayer:GetMouse()
- local character = game.Players.LocalPlayer.Character
- local ammo = 1
- local canDamage = false
- local range = 10
- function press(key)
- if key == "e" and ammo > 0 then
- ammo = 0
- canDamage = not canDamage
- wait(0.2)
- ammo = 1
- end
- end
- mouse.KeyDown:Connect(press)
- while game:GetService("RunService").RenderStepped:wait() do
- if canDamage then
- for i, v in pairs(workspace:GetChildren()) do
- local hum = v:FindFirstChildOfClass("Humanoid")
- local tors = v:FindFirstChild("Head")
- if hum and tors then
- if v.Name ~= character.Name then
- if (character.Head.Position - tors.Position).magnitude <= range then
- local val = v:FindFirstChild("hit")
- if val then
- --nothing
- else
- Instance.new("Folder",v).Name = "hit"
- local function rapidExplosion()
- local bv = Instance.new("BodyVelocity",tors)
- bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.Velocity = tors.CFrame.LookVector * 100 + Vector3.new(0,30,0)
- local lol = Instance.new("Sound",v)
- lol.SoundId = "rbxassetid://2216794573"
- lol.MaxDistance = 300
- lol.Volume = 10
- lol:Play()
- game.Debris:AddItem(lol,7.78)
- for i = 1,45 do
- wait(0.08)
- bv.Velocity = tors.CFrame.LookVector * 100 + Vector3.new(0,30,0)
- local ex = Instance.new("Explosion",v)
- ex.DestroyJointRadiusPercent = 0
- ex.BlastPressure = 0
- ex.BlastRadius = 0
- ex.Position = tors.Position
- end
- v:BreakJoints()
- end
- rapidExplosion()
- v.hit:Destroy()
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement