Player not moving

As the title suggests, the character is not moving for some reason.
Here is my code:

local houseInterior = game.Workspace:WaitForChild("HouseInterior")
local owner = script.Parent.Parent.Parent.BGUI.HouseOwner

script.Parent.GoInside.Triggered:Connect(function(playerWhoTriggered)
     if script.Parent.DoorLocked.Value == false then
     playerWhoTriggered.Character:MoveTo(Vector3.new(1,1,1))
     end
end)

I don’t get any errors either.

I’m pretty sure you need to use :MoveTo() on a humanoid, so try this instead:

playerWhoTriggered.Character.Humanoid:MoveTo(Vector3.new(1, 1, 1))
1 Like

If it still does not work check if the player exists actually. Even if it exists in the game by the time the function is run, you might not be giving the correct data to the function. Simply print the player’s name somewhere in the script.

That’s weird… it only works in the cmd bar like this:

game.Players.LocalPlayer.Character:MoveTo(Vector3.new(1,1,1))

Maybe it only works on the client?

Humanoid:MoveTo() will force player to WALK to the position not tp.
while Model:MoveTo() will make it teleport.


@2jammers if MoveTo() isnt working for you then try

playerWhoTriggered.Character:SetPrimaryPartCFrame(CFrame.new(Vector3.new(1,1,1)))

Keep this in mind

  • That Doorlocked value is false.
  • That the proximity prompt is actually triggering.

you can debug it by using print() to check if trigger or not.

It seems the the prompt isn’t triggering.

Can you record a video triggering the prompt with the output on?

No, sadly I can’t record videos.

Sorry, i’m just scared of info getting leaked, besides I don’t have any software.

I might just do this tomorrow, im wasting time to be productive

Ah okay, so this gonna be tough without a video but sure.
Any errors in the output? and where did you put the “print” function to debug the code?

I put the print function on the first line of the function, no result.

Can you at least show the screen shot of the explorer where your proximity prompt is?

Where is your script located? Is it a LocalScript? Take in mind scripts don’t run at certain places.