Universal Script 📌
4.3k Views
85 Executions

Click Teleport

Universal 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

LeftControl+MouseButton1

View Raw
if _G.ClickTeleport == nil then
    _G.ClickTeleport = true

    local UserInputService = game:GetService("UserInputService")
    local Players = game:GetService("Players")
    local player = Players.LocalPlayer
    local mouse = player:GetMouse()

    UserInputService.InputBegan:Connect(function(input, gameProcessed)
        if gameProcessed then return end
        if input.UserInputType == Enum.UserInputType.MouseButton1 then
            if _G.ClickTeleport and UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then
                if player.Character and player.Character:FindFirstChild("HumanoidRootPart") and mouse.Target then
                    local hrp = player.Character:FindFirstChild("HumanoidRootPart")
                    local targetPos = mouse.Hit.p
                    hrp.CFrame = CFrame.new(targetPos + Vector3.new(0, 3, 0))
                end
            end
        end
    end)
else
    _G.ClickTeleport = not _G.ClickTeleport
    if _G.ClickTeleport then
        game.StarterGui:SetCore("SendNotification", {Title="Cqwe5 Click Teleport"; Text="Enabled"; Duration=5;})
    else
        game.StarterGui:SetCore("SendNotification", {Title="Cqwe5 Click Teleport"; Text="Disabled"; Duration=5;})
    end
end


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
159.7k
1.5M
Bumped 2 hours ago
Key System

Script hub

#15 this week

Verified script badgeAirflow HUB

Universal Script 📌
2.3k
990
Bumped 2 hours ago
Script hub
1.6M
1.9M
Bumped 2 hours ago
Key System

Script hub

#10 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Universal Script 📌
40.4k
817.4k
Bumped 4 hours ago
Universal Script 📌
133.7k
24.2k
Bumped 4 hours ago
Key System