I made a sonic gravity controller (using Egomoose’ gravity controller) and wanted to add downwards and upwards momentum, so I made a short script that increases your walk speed depending on the orientation of your character. After I made the script, I play tested my game and my character couldn’t move. I tested this multiple times and became sure that the orientation momentum script is the one breaking the gravity controller. Do you guys have any reasons why?
local HRP = script.Parent.HumanoidRootPart local orientZ = HRP.Orientation.Z local orientX = HRP.Orientation.X script.Parent.Humanoid.Running:Connect(function() if orientZ == 0 then script.Parent.Humanoid.WalkSpeed = script.Parent.Humanoid.WalkSpeed + 10000000000 end end)
The script works whenever I turn off the gravity controller, but this is supposed to slow down/ speed up the player whenever they’re walking on walls with the controller ON. Any reason why this is happening?