I want to make an infinite hallway via teleportation like what you can do in Minecraft with /tp @p ~15 ~ ~, and tried using the exact coordinates of where I wanted him to teleport, but it wasn't seamless. How do I do the same thing, but in Roblox?
COMMUNITY QUESTION
How do I make someone be teleported similar to the Minecraft does?
1 answer
Assuming you know how to access the player from a local script. You could get the character from the player. game.Players.LocalPlayer.Character The character is the player's in game body. It acts like any other model with a primary part. If you use: :SetPrimaryPartCFrame() With this function you provide a CFrame (Position) for the model to change its position to, or "teleport" to.
I'm assuming you don't know the basic "ropes" of Roblox Lua. Like Dexiber said, I would recommend checking out AlvinBlox on youtube!
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:wait()
local newCFrame = CFrame.new(x, y, z)
character:SetPrimaryPartCFrame(newCFrame)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
You could watch alvin blox's youtube tutorial on youtube and mix up your code in the functions.
?