How would I teleport a player without killing them? The below script is a non working example :P
local player = script.Parent.Parent.Parent.Parent button.MouseButton1Down:connect(function() player.character.Torso.Position = game.Workspace.Block.Position end
button = script.Parent local player = script.Parent.Parent.Parent.Parent button.MouseButton1Down:connect(function() player.Character.Torso.CFrame = CFrame.new(game.Workspace.Block.Position) end)
Change Position to CFrame and set the new CFrame using CFrame.new()
and put inside the part you want the player to teleport to