Hello, I have a problem where the football does not move. For some reason, the velocity returns 0,0,0. Please help:
local function addForce(part)
local force = Instance.new("BodyVelocity")
force.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
force.P = 999
force.Velocity = (char:FindFirstChild("HumanoidRootPart").CFrame.LookVector + Vector3.new(0, pwr/2/100, 0) ) * pwr/1.5
force.Parent = part
force.Name = "vel"
print(force.Velocity)
game.Debris:AddItem(force, 0.3)
end
local function kick(part)
if pwr <= 40 then
local track = char:FindFirstChildWhichIsA("Humanoid"):LoadAnimation(script.LowKick)
track:Play()
kicking = true
wait(track.Length)
kicking = false
elseif pwr <= 70 then
local track = char:FindFirstChildWhichIsA("Humanoid"):LoadAnimation(script.MidKick)
track:Play()
kicking = true
wait(track.Length)
kicking = false
else
local track = char:FindFirstChildWhichIsA("Humanoid"):LoadAnimation(script.HighKick)
track:Play()
kicking = true
wait(track.Length)
kicking = false
end
game:GetService("ReplicatedStorage").Events.Net:FireServer(game.Players.LocalPlayer)
addForce(part)
end