How to get vector3 from a character/model?

I want to get the Vector3 position from a character/model. But I don’t know how to do that…

I already have the character in a variable called localValue.

script.Parent.playerValue.Value.Character:MoveTo("vector3 here")

Use origin position instead of regular position.

How would I do that? Im not that experienced.


script.parent.playervalue.value.character:MoveTo(PathToModel.OriginPosition)

You can use pivot too

Player.Character:PivotTo(vectorValue)

Yeah I was just copying his code to emphasize what and where the origin position is.

The output says, that OriginPosition is not a valid member of the character and it does not work…
Maybe because it’s a ServerScript?

You can get the vector3 of the player character like this:

local Character
script.Parent.playerValue.Value.Character:MoveTo(Character.HumanoidRootPart.Position)

In the variable put the character in which you want to get the position.

Try
script.Parent.playerValue.Value.Character.Humanoid:MoveTo("vector3 here")

Output: HumanoidRootPart is not a valid member of Player “Players.Player1”

HumanoidRootPart is on the character, not the player instance.

https://developer.roblox.com/en-us/api-reference/property/Player/Character

Thank you! Now it’s kinda working.

It is all for a teleport system. The “teleport to” button works, but the other one is the one i have problems with. Now it’s half fixed. It teleports me to other player and not the other player to me. But I really don’t know why

Can you help me to fix this too, please?

LocalScript:

local localValue = game.Players.LocalPlayer

local function Bring()
	script.Parent.RemoteEvent:FireServer(localValue)
end

script.Parent.Bring.MouseButton1Click:Connect(Bring)

Script:

script.Parent.RemoteEvent.OnServerEvent:Connect(function(localValue)
	script.Parent.Parent.playerValue.Value.Character:MoveTo(localValue.Character.HumanoidRootPart.Position)
end)