I tried making a simple power where the player shoots out 10 cans to the mouse pos via a loop. When the move is used, nothing happens yet it says the event has fired. Any help would be appreciated.
local function Can()
local canclone = game:GetService("ReplicatedStorage").Models:FindFirstChild("Can"):Clone()
canclone.Parent = workspace
canclone.Position = char.HumanoidRootPart + Vector3.new(0,0,-5)
local BodyVelocity = Instance.new("BodyVelocity", canclone)
BodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
BodyVelocity.Velocity = CFrame.new(canclone.Position, Mouse.p).lookVector * 100
end
for i = 0.3, repeat_times do
Can()
end