So I am trying to make a script that when you press a key it will make a fireball that moves, but the problem is that when I press the key the ball just appear and don't move.I used bodyvelocity to move it!
local Player = game.Players.LocalPlayer
local Character = Player.Character
local Mouse = Player:GetMouse()
local debounce = false
Mouse.KeyDown:connect(function(key)
key = key:lower()
if key == "q" and debounce == false then
fireball = Instance.new('Part')
fireball.Parent = Player.Character
fireball.BrickColor = BrickColor.new("Deep orange")
fireball.Shape = "Ball"
fireball.Material = "Neon"
fireball.CFrame = Character.Torso.CFrame * CFrame.new(0,0,-5)
bv = Instance.new("BodyVelocity")
bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bv.Velocity = Character.Torso.CFrame.lookVector*20
bv.Parent = fireball
end
end)

1 comment
Hm... Good thx