I am trying to make a script that allows my NPC to teleport. I tried to use Vector3.new to grab the position of the dummy and replicate it to the part, but it does not seem to work.
local dummyPos = game.Workspace.Dummy.HumanoidRootPart.Position
local partPos = game.Workspace.Part.Position
wait(6)
dummyPos = Vector3.new(-31, 0.5, -1)