Core methods for disabling movement

I’m wondering if there are any CoreScript methods for disabling all movement related input connections. I’m creating a game that uses an isometric view with no character, where the mobile joystick and WASD keys will move the camera locked to a y-plane.

I do more back-end things so I haven’t experimented with the character, so I’m wondering if I can just remove the character altogether. I know how to script custom cameras and translate joystick input, I just want to remove the core implementation of movement methods.

I have in the past cloned the core scripts and edited them and placed them in starterplayerscripts, but I feel that is more of a hack-fix and there must be an easier way.

local Players = game:GetService("Players")

local player = Players.LocalPlayer
local PlayerModule = require(player.PlayerScripts.PlayerModule)

local controls = PlayerModule:GetControls()
controls:Disable()

should work if you’re just trying to disable all default movement controls

edit: you can probably just disable Players.CharacterAutoLoads if you don’t want any character to load ever

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.