Run it
Copy the script and paste it into your executor.
Players = :()
UserInputService = :()
TweenService = :()
RunService = :()
player = Players.LocalPlayer
character = player.Character player.CharacterAdded:()
humanoid = character:()
rootPart = character:()
isTeleportEnabled =
isDragging =
dragInput, dragStart, startPos
screenGui = .()
screenGui.Name =
screenGui.ResetOnSpawn =
screenGui.Parent = player:()
mainFrame = .()
mainFrame.Name =
mainFrame.Size = .(, , , )
mainFrame.Position = .(, -, , )
mainFrame.BackgroundColor3 = .(, , )
mainFrame.BorderSizePixel =
mainFrame.Parent = screenGui
mainCorner = .()
mainCorner.CornerRadius = .(, )
mainCorner.Parent = mainFrame
title = .()
title.Size = .(, , , )
title.BackgroundColor3 = .(, , )
title.Text =
title.TextColor3 = .(, , )
title.Font = .Font.GothamBold
title.TextSize =
title.Parent = mainFrame
titleCorner = .()
titleCorner.CornerRadius = .(, )
titleCorner.Parent = title
titleFix = .()
titleFix.Size = .(, , , )
titleFix.Position = .(, , , -)
titleFix.BackgroundColor3 = .(, , )
titleFix.BorderSizePixel =
titleFix.Parent = title
toggleButton = .()
toggleButton.Name =
toggleButton.Size = .(, , , )
toggleButton.Position = .(, , , )
toggleButton.BackgroundColor3 = .(, , )
toggleButton.Text =
toggleButton.TextColor3 = .(, , )
toggleButton.Font = .Font.Gotham
toggleButton.TextSize =
toggleButton.Parent = mainFrame
btnCorner = .()
btnCorner.CornerRadius = .(, )
btnCorner.Parent = toggleButton
teleportBtn = .()
teleportBtn.Name =
teleportBtn.Size = .(, , , )
teleportBtn.Position = .(, -, , -)
teleportBtn.BackgroundColor3 = .(, , )
teleportBtn.Text =
teleportBtn.TextColor3 = .(, , )
teleportBtn.Font = .Font.GothamBold
teleportBtn.TextSize =
teleportBtn.Visible =
teleportBtn.Parent = screenGui
teleBtnCorner = .()
teleBtnCorner.CornerRadius = .(, )
teleBtnCorner.Parent = teleportBtn
teleBtnStroke = .()
teleBtnStroke.Color = .(, , )
teleBtnStroke.Thickness =
teleBtnStroke.Parent = teleportBtn
mainFrame.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
isDragging =
dragStart = input.Position
startPos = mainFrame.Position
input.Changed:(()
input.UserInputState == .UserInputState.End isDragging =
)
)
mainFrame.InputChanged:((input)
input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch
dragInput = input
)
UserInputService.InputChanged:((input)
input == dragInput isDragging mainFrame
delta = input.Position - dragStart
mainFrame.Position = .(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
)
isTeleBtnDragging =
teleBtnDragInput, teleBtnDragStart, teleBtnStartPos
teleportBtn.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
waitTime =
startTime = ()
moved =
connection
connection = input.Changed:(()
input.UserInputState == .UserInputState.End
connection:()
moved
()
)
(()
input.UserInputState == .UserInputState.Begin
()
(input.Position - teleBtnDragStart).Magnitude >
moved =
)
teleBtnDragStart = input.Position
teleBtnStartPos = teleportBtn.Position
)
teleportBtn.InputChanged:((input)
input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch
teleBtnDragInput = input
)
UserInputService.InputChanged:((input)
input == teleBtnDragInput teleportBtn.Visible
delta = input.Position - teleBtnDragStart
teleportBtn.Position = .(teleBtnStartPos.X.Scale, teleBtnStartPos.X.Offset + delta.X, teleBtnStartPos.Y.Scale, teleBtnStartPos.Y.Offset + delta.Y)
)
()
isTeleportEnabled
position = UserInputService:()
ray = .CurrentCamera:(position.X, position.Y)
raycastParams = RaycastParams.()
raycastParams.FilterType = .RaycastFilterType.Exclude
raycastParams.FilterDescendantsInstances = {character}
raycastResult = :(ray.Origin, ray.Direction * , raycastParams)
raycastResult
rootPart rootPart.Parent
rootPart.CFrame = .(raycastResult.Position + .(, , ))
rootPart rootPart.Parent
rootPart.CFrame = .(ray.Origin + ray.Direction * )
UserInputService.InputBegan:((input, gameProcessed)
gameProcessed
input.UserInputType == .UserInputType.MouseButton2
()
)
toggleButton.MouseButton1Click:(()
isTeleportEnabled = isTeleportEnabled
isTeleportEnabled
toggleButton.Text =
toggleButton.BackgroundColor3 = .(, , )
teleportBtn.Visible =
toggleButton.Text =
toggleButton.BackgroundColor3 = .(, , )
teleportBtn.Visible =
)
player.CharacterAdded:((newCharacter)
character = newCharacter
humanoid = newCharacter:()
rootPart = newCharacter:()
)-Click Teleport

Universal