How do you change the position of a local player?

Hay developers, I am trying to position a humanoid at a set cord but I cant figure out how. I’ve never done humanoid positioning so your help would be greatly appreciated.

2 Likes
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local TargetPosition = Vector3.new(20, 0, 0)

Character.HumanoidRootPart.Position = TargetPosition

Basically, we’re just setting the Character’s PrimaryPart (HumanoidRootPart) Position to a Vector3 value (Aka, we’re moving it)

1 Like

It doesn’t work. Im I doing something wrong?

1 Like

Change the script to the LocalScript and uh, put it in StarterPack

1 Like