The player walks on to a brick(part) and then gets teleported to another brick (part).
How would this work in Lua?
local part = script.Parent -- put script in part that teleports the player when touched otherwise edit local teleportTo = game.Workspace.TELEPORTPART -- edit this line. part where player is teleported to part.Touched:connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then player.Character:MoveTo(teleportTo.Position) end end)