local Dude = game.Players.LocalPlayer
mouse = Dude:GetMouse()
Char = Dude.Character
local debounce = false
mouse.KeyDown:connect(function(key)
if key == "e" then
if not debounce then
debounce = true
--Variables
local Touch = false
local FireBall = Instance.new("Part")
local Mesh = Instance.new("SpecialMesh")
local Fire = Instance.new("Fire")
local BodyVelocity = Instance.new("BodyVelocity")
--Parent
BodyVelocity.Parent = FireBall
FireBall.Parent = workspace
Fire.Parent = FireBall
Mesh.Parent = FireBall
--Characteristic
FireBall.CanCollide = false
BodyVelocity.MaxForce = Vector3.new(4000,4000,4000)
BodyVelocity.P = 1205
BodyVelocity.Velocity = Char.HumanoidRootPart.CFrame.lookVector*100
FireBall.Transparency = 0.8
FireBall.BrickColor = BrickColor.new("Really red")
Mesh.MeshType = "Sphere"
FireBall.Size = Vector3.new(1.17, 1.17, 1.17)
--Cframes
FireBall.CFrame = Char:FindFirstChild("RightHand").CFrame
--Damage Script Cause idk
FireBall.Touched:connect(function(Hit)
local Hum = Hit.Parent:FindFirstChild("Humanoid")
if Hum == nil then return end
if Touch == false then
Touch = true
if Hum.Parent == Char then
print("FriendlyFire IS OFF YOU HEAR ME!?")
else
Hit.Humanoid.Health = Hit.Humanoid.Health -50
end
end
end)
--Raf dont get confuse at this
wait(2)
FireBall:Destroy()
debounce = false
end
end
end)
So ugh if you know what's causing the problem and tell why thank you also im really hecka confuse so help me out!

1 comment
Are you assuming the player's gender by naming the LocalPlayer variable "Dude"?