I’m having an issue where roblox is currently overriding my player movement system, but I cannot find a way to consistently disable roblox’s movement system.
local PlayerModule = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule"))
local Controls = PlayerModule:GetControls()
Controls:Disable()
local ContextActionService = game:GetService("ContextActionService")
local FREEZE_ACTION = "freezeMovement"
ContextActionService:BindAction(
FREEZE_ACTION,
function() return Enum.ContextActionResult.Sink end,
false,
unpack(Enum.PlayerActions:GetEnumItems())
)
Both Controls:Disable() and ContextAction do not work when actually playing the game, but both work in Studio and Client and Server simulation. I’m kinda scratching my head at this one.