I tried to make some free one-way teleporter models vector3 to one place and then teleport1 should've teleport player to teleport2 (In another place), but instead the thing just teleports player away from the map
local earth = game.ReplicatedStorage.EarthquakeScript local t = game.Workspace:WaitForChild("Teleport1") local s = game.Workspace.sounds.bells local woodcrawler = game.ReplicatedStorage.Woodcrawler local it = game.ReplicatedStorage.it local IRIS = game.ReplicatedStorage.spawnerIRISA s.Looped = 1 s.Volume = 5 local enemyleader = game.ReplicatedStorage.special game.Workspace.spaw.spawner3.Touched:Connect(function() enemyleader.Parent = workspace end) local folder = game.Workspace.spaw.spawner3 folder.ChildRemoved:Connect(function() if #folder:GetChildren() == 0 then for _,player in pairs(game.Players:GetPlayers()) do wait(6.5) player.PlayerGui.RUN.Frame.Visible = 1 s:Play() game.Workspace.basement.door.Position = Vector3.new(-221.804, 412.2, 77.077) game.Workspace.basement.door.Orientation = Vector3.new(-58.55, 76.68, -151.73) t.Position = Vector3.new(-222.424, 407.974, 82.685) t.Touched:Connect(function() player.PlayerGui.RUN.Enabled = false s:Destroy() wait(10) earth.Parent = workspace.cube.floor woodcrawler.Parent = workspace wait(5) player.PlayerGui.black.Frame.Visible = 1 game.workspace.cube.floor.EarthquakeScript:Destroy() "game.workspace.tele1.Position = Vector3.new(291.058, 353.487, 176.17)" -- the line where I need a teleport wait(2) player.PlayerGui.black.Enabled = false wait(8) game.Workspace.Dome.PointLight.Brightness = 1000000 game.Workspace.Dome.PointLight.Range = 60 t:Destroy() game.Lighting.Brightness = 0 game.Lighting.ExposureCompensation = -3 game.Workspace.TP1.Position = Vector3.new(357.91, 371.668, 173.788) game.Workspace.Finalwall.Position = Vector3.new(-161.98, 413.828, 152.459) game.Workspace.helpme.Position = Vector3.new(-381.922, 418.807, 221.697) it.Parent = workspace IRIS.Parent = workspace end) end else print(#folder:GetChildren()) end end)