I am trying to make a cutscene that includes a player walking to a point and such, but I cannot do that if the player decides to move by pressing the A,W,S,D keys or the arrow buttons. I used to use this:
--LocalScript
local control = script.Parent:WaitForChild("ControlScript")
function Stop()
control.Parent = nil
end
function Resume()
control.Parent = script.Parent
end
wait()
Stop()
wait(1000)
Resume()
but aparently that is outdated and roblox uses module scripts to control that sort of stuff now, so I looked around and I found this:
local PlayerModule = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule"))
local Controls = PlayerModule:GetControls()
Controls:Disable()
and I pasted that into a local script inside StarterPlayerScripts without any outcome. Am I doing something wrong?

1 comment
i tested it in a blank baseplate and it worked perfectly? (player module:Disable() method)