SHOW:
|
|
- or go back to the newest paste.
| 1 | mouse = game.Players.LocalPlayer:GetMouse() | |
| 2 | game:GetService("UserInputService").InputBegan:Connect(function(key,gpe)
| |
| 3 | - | if key.KeyCode == Enum.KeyCode.Q then |
| 3 | + | if key.KeyCode == Enum.KeyCode.113 then |
| 4 | ||
| 5 | local FireBall = Instance.new("Part",game.Workspace)
| |
| 6 | FireBall.Shape = "Ball" | |
| 7 | FireBall.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position) + Vector3.new(0,0,1) | |
| 8 | FireBall.Size = Vector3.new(1,35,1.35,1.35) | |
| 9 | FireBall.CanCollide = false | |
| 10 | FireBall.BrickColor = BrickColor.new("Persimmon")
| |
| 11 | local Fire = Instance.new("Fire",FireBall)
| |
| 12 | local BodyVeclocity = Instance.new("BodyVelocity",FireBall)
| |
| 13 | BodyVeclocity.MaxForce = Vector3.new(1e8,1e8,1e8) | |
| 14 | BodyVeclocity.Velocity = mouse.Hit.lookVector * 50 | |
| 15 | FireBall.Touched:Connect(function(tch) | |
| 16 | ||
| 17 | if tch.Parent:FindFirstChild("Humanoid") and tch.Parent.Name ~= game.Players.LocalPlayer.Name then
| |
| 18 | FireBall:Destroy() | |
| 19 | ||
| 20 | tch.Parent:FindFirstChild("Humanoid"):TakeDamage(30)
| |
| 21 | end | |
| 22 | ||
| 23 | end) |