I have changed the player into a part. I’m trying to disable player movement and simply print out the position of the player.
The movement does get disabled but the part position doesn’t get printed. I’ve looked all of the dev forum but nothing helped. I’m really sorry if this is too naive; I just started scripting.
Any help is appreciated.
The following script is in StarterCharacterScript and is a local script:
local LocalPlayer = game:GetService("Players").LocalPlayer
local Controls = require(LocalPlayer.PlayerScripts.PlayerModule):GetControls()
Controls:Disable()
local Character = game.Players.LocalPlayer:WaitForChild("Character"):WaitForChild("HumanoidRootPart")
print(Character.Position)