Universal Script 📌
8.1k Views
35 Executions

simple tp script

Universal Script 📌
heckerYAEAWTYAY
heckerYAEAWTYAYFirst script
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

press insert to enable the code and press it again to disable it and then press f to teleport anywhere to your mouse position (prints out if its enabled or disabled when you press insert)

Updates

  1. Script edited: Create script

View Raw
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local teleportEnabled = false

local function toggleTeleport()
    teleportEnabled = not teleportEnabled
    if teleportEnabled then
        print("Teleportation enabled")
    else
        print("Teleportation disabled")
    end
end

local function teleportToMouse()
    if teleportEnabled and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
        local targetPosition = mouse.Hit.Position
        player.Character.HumanoidRootPart.CFrame = CFrame.new(targetPosition)
    end
end

mouse.KeyDown:Connect(function(key)
    if key:lower() == "f" then
        teleportToMouse()
    end
end)

game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessedEvent)
    if input.KeyCode == Enum.KeyCode.Insert then
        toggleTeleport()
    end
end)


Comments

1
Log in to join the conversation. Login
heckerYAEAWTYAY's profile picture
heckerYAEAWTYAYUploader2 years ago(edited)

Have fun!

1

More universal scripts

See all
Script hub
3.0M
1.1M
Bumped 3 hours ago
Key System

Script hub

#6 today

CanHub V2 200 GAMES KEYLESS

Script hub
166
7
22 hours ago
Script hub
277.5k
165.4k
Bumped 4 hours ago
Key System
Universal Script 📌
6.7k
17.0k
Bumped 4 hours ago
Script hub
1.7M
431.9k
Bumped 5 hours ago
Key System

Script hub

#7 today

Verified script badgeAxonic Hub | 50+ Games Supported

Universal Script 📌
2.5k
7.1k
Bumped 10 hours ago
Script hub
5.9k
86.5k
Bumped 10 hours ago

Script hub

SAGAZx Hub

Script hub
77.7k
274.5k
Bumped 11 hours ago
Key System