Why my script not working(so stupid)

So i feel really stupid and i don’t understand why this script not working i have the second position
Im really bad with vector

World.OnServerEvent:Connect(function(Player, position2)
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
local HumanoidRP = Character:WaitForChild("HumanoidRootPart")
local position = HumanoidRP.Position
print(position)
print(position2)

HumanoidRP.Position = Vector3.new(position2)
print(position2)

end)

1 Like

Is there any error messages in the output?

no there is not just the postions of the humanoidrootpart and postion2 where i want it too go

Try this:

World.OnServerEvent:Connect(function(Player, position2)
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
local HumanoidRP = Character:WaitForChild("HumanoidRootPart")
local position = HumanoidRP.Position
print(position)
print(position2)

HumanoidRP.Position = position2
print(position2)
end)

I felt rlly stupid when i look at it mistakes are mistakes :smiley: