Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mouse = game.Players.LocalPlayer:GetMouse()
- game:GetService("UserInputService").InputBegan:Connect(function(key,gpe)
- if key.KeyCode == Enum.KeyCode.113 then
- local FireBall = Instance.new("Part",game.Workspace)
- FireBall.Shape = "Ball"
- FireBall.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position) + Vector3.new(0,0,1)
- FireBall.Size = Vector3.new(1,35,1.35,1.35)
- FireBall.CanCollide = false
- FireBall.BrickColor = BrickColor.new("Persimmon")
- local Fire = Instance.new("Fire",FireBall)
- local BodyVeclocity = Instance.new("BodyVelocity",FireBall)
- BodyVeclocity.MaxForce = Vector3.new(1e8,1e8,1e8)
- BodyVeclocity.Velocity = mouse.Hit.lookVector * 50
- FireBall.Touched:Connect(function(tch)
- if tch.Parent:FindFirstChild("Humanoid") and tch.Parent.Name ~= game.Players.LocalPlayer.Name then
- FireBall:Destroy()
- tch.Parent:FindFirstChild("Humanoid"):TakeDamage(30)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement