Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait()
- local plrs = game:GetService("Players")
- local plr = plrs.LocalPlayer
- local char = plr.Character
- local head = char:WaitForChild("Head")
- local mouse = plr:GetMouse()
- local animation = Instance.new("Animation")
- animation.AnimationId = "http://www.roblox.com/Asset?ID=1188959652"
- local tweenService = game:GetService("TweenService")
- local cool = false
- local tweeningInformation = TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.Out)
- mouse.Button1Down:Connect(function()
- if cool == false then
- cool = true
- char.Torso.Anchored = true
- local animTrack = char.Humanoid:LoadAnimation(animation)
- animTrack:Play()
- local b = Instance.new("Part")
- b.Shape = Enum.PartType.Ball
- b.CanCollide = false
- b.Parent = workspace
- b.Anchored = true
- b.CFrame = CFrame.new(head.CFrame.X, head.CFrame.Y, head.CFrame.Z)
- local partProperties = {Position = Vector3.new(head.CFrame.X, head.CFrame.Y * 2, head.CFrame.Z)}
- local Tween = tweenService:Create(b,tweeningInformation,partProperties)
- Tween:Play()
- wait(2)
- b.Anchored = false
- local f = Instance.new("BodyForce")
- f.Parent = b
- f.Force = mouse.Hit.p * 10
- b.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= char then
- hit.Parent.Humanoid.Health = 0
- b:Destroy()
- end
- end)
- char.Torso.Anchored = false
- wait(2)
- cool = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement