local Players = game:GetService("Players") local Part = script.Parent ? Part.Touched:connect(function(part) local plr = Players:GetPlayerFromCharacter(part.Parent) plr.HumanoidRootPart.Position = Vector3.new(22.79, 2.5, 105.545) end)
Also there is NO error at all I would REALLY appreciate some help
LIke @chloe_price65 said, player instances do not have a HumanoidRootPart. Only the character has a HumanoidRootPart.
Sample:
local HRP = player.Character.HumanoidRootPart
player.Character
is the important part that you were missing.
Then, you can simply do what you have done.
HRP.Position = Vector3.new(22.79, 2.5, 105.545)
Use CFrame instead of Position. I don't know exactly why, but it will help teleporting your character.
Also check your output, because Player Instances do not have HumanoidRootParts, their characters do.
Sample:
HumanoidRootPart.CFrame = CFrame.new(0,0,0) --> origin