i made some code that should shoot a fireball i am using 3 layers of meshes so i have to give them all body velocity and i did but still only 1 of the meshes gets shot this is fb1 the rest just falls trought the map i checked if this was due to property settings but they are all the same!

My Code

function FireballAttack(Player)
	local FbSpeed= 100
	local FBLife = 6
	local Hurmp = Player.Character.HumanoidRootPart
	
	local bv1 = Instance.new("BodyVelocity")
	bv1.MaxForce = Vector3.new(1,1,1) * 3000
	bv1.Velocity = Hurmp.CFrame.lookVector * FbSpeed
	
	local bv2 = Instance.new("BodyVelocity")
	bv2.MaxForce = Vector3.new(1,1,1) * 3000
	bv2.Velocity = Hurmp.CFrame.lookVector * FbSpeed
	
	local bv3 = Instance.new("BodyVelocity")
	bv3.MaxForce = Vector3.new(1,1,1) * 3000
	bv3.Velocity = Hurmp.CFrame.lookVector * FbSpeed
	
	local fb1 = script.FireBallOne:Clone()
	fb1.Parent = workspace.Debris
	fb1.CFrame = Hurmp.CFrame
	
	local fb2 = script.FireBallTwo:Clone()
	fb2.Parent = workspace.Debris
	fb2.CFrame = Hurmp.CFrame
	
	local fb3 = script.FireBallThree:Clone()
	fb3.Parent = workspace.Debris
	fb3.CFrame = Hurmp.CFrame
	
	bv1.Parent = fb1
	bv2.Parent = fb2
	bv3.Parent = fb3


  Debris:AddItem(fb1,FBLife)
  Debris:AddItem(fb2,FBLife)
  Debris:AddItem(fb3,FBLife)
end

1 comment

0

uh try weld :] xd