I made Web Slingers and i need to find a way to stop the player from going to crazy heights in the air. As you can see in the video, the height that i got to could break the game. I need a way to try and lower the player humanoidrootpart velocity so it doesn’t go too high.
Thanks!
Well you should check the Velocity that the player is going through. If it’s too high (presumably set a limit first) then you set the velocity in negative.
Btw this is very cool
Yeah i tried that but no luck!
Also Thanks
Try setting the HumanoidRootPart
's AssemblyLinearVelocity
to Vector3.zero
.
local HRP = -- insert HRP
if HRP then
HRP.AssemblyLinearVelocity = Vector3.zero
end
Unfortunately this would not work as now the player has no velocity. This meaning that the player can’t move, jump fall. They would get be stuck in whatever position.
What are you using for your web (RopeConstraint, SpringConstraint, RodConstraint, and etc.)?
Rope Constraint and Body Velocity
No, setting the AssemblyLinearVelocity
to Vector.zero
once before swinging isn’t enough to completely stop the player from moving. But it is enough to stop the web to fling you because of your old velocity.
It doesnt seem to be making a difference. I changed the AssemblyLinearVelocity to Vector3.zero
Could you send the properties of your RopeConstraint
?
Those are the properties
I found the fix.
Lower the WinchForce to 10000 - 15000.