I have been trying to create a soccer kick system like TPS street soccer, I just can’t get it right. It doesn’t feel any bit like it
I posted a reply to a similar post like yours. I’m not sure the velocity is set correctly but let me know if this helps you:
Oh, and by the way, if you want the player to kick the ball when they click the “K” key, just change it to this:
local UserInputService = game:GetService(“UserInputService”)
UserInputService.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.K then
-- K is for kick but you can change the key to any key you’d like
if (Player.Character.HumanoidRootPart.Position - Soccer_Ball.Position).Magnitude <= 5 then
Soccer_Ball.Velocity = Vector3.new(50, 0, 0)
end
end
end)