Hi,Is there any way to remove “ApplyImpuse()” force created by many people in a football game
I want to remove “red force”
Here a exemple try this
local player = game.Players.LocalPlayer
local character = player.Character
local humanoid = character:WaitForChild("Humanoid")
humanoid:ChangeState() --The code of StateType in the ()
What do mean? I mean the ball in a scoccer game
Do that then ? Is that what you mean ?
local ball = game.Workspace.Ball
ball:SetNetworkOwner(nil)
local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.Velocity = Vector3.new(0,0,0)
bodyVelocity.Parent = ball
ball.Velocity = Vector3.zero
If you want to keep the velocity of the ball falling you’ll have to somehow track every :ApplyImpulse()
while keeping in mind that those forces will go away over time (basically you’ll have to use hidden values in roblox’s physics engine (which we can’t access) or recreate your own physics)
Or you can do ball.Velocity *= Vector3.yAxis
to only set horizontal forces to 0.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.