Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = game.Players.LocalPlayer
- c = p.Character
- Cooldown = false
- game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
- c = game.Players.LocalPlayer.Character
- if Cooldown == false and key == "f" then
- Cooldown = true
- local Part = Instance.new("Part")
- Part.Size = Vector3.new(7.5,7.5,7.5)
- wait(.5)
- Part.Parent = c
- Part.CFrame = c.UpperTorso.CFrame * CFrame.new(0,0,-1.5)
- Part.BrickColor = BrickColor.new("Lapis")
- Part.CanCollide = false
- Part.Transparency = .5
- Part.Material = "Neon"
- Part.Shape = "Ball"
- local Vel = Instance.new("BodyVelocity")
- Vel.Parent = Part
- local c = game.Players.LocalPlayer.Character
- Vel.Velocity = c.HumanoidRootPart.CFrame.lookVector * 100
- Vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- Mouse = game.Players.LocalPlayer:GetMouse()
- c.HumanoidRootPart.CFrame = CFrame.new(c.HumanoidRootPart.Position,c.HumanoidRootPart.Position + Vector3.new(Mouse.hit.x,0,Mouse.hit.z))
- local Touch = false
- Part.Touched:connect(function(hit)
- if Touch == false and hit.Parent ~= nil then
- if hit.Parent:FindFirstChild("Humanoid")~= nil then
- Character = game.Players.LocalPlayer.Character
- if hit.Parent.Name ~= Character.Name then
- Touch = true
- hit.Parent.Humanoid:TakeDamage(65)
- local velly = Instance.new("BodyVelocity")
- velly.Parent = hit.Parent.HumanoidRootPart
- velly.Velocity = Vector3.new(Part.CFrame.lookVector.x,Part.CFrame.lookVector.y,Part.CFrame.lookVector.z*-50)
- velly.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- wait(.5)
- Part:Destroy()
- velly:Destroy()
- end
- end
- end
- end)
- wait(1)
- if Part~= nil then
- Part:Destroy()
- end
- wait(1)
- Cooldown = false
- end
- end)
Add Comment
Please, Sign In to add comment