
1.3k Views
103 Executions
any keybind tp
Universal Script 📌
mod3Published 10
1 year ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
set the keybind to any desired key, and when hold it and then just press lmb, its like ctrl + tp but you can change the keybind
-- LocalScript (StarterPlayerScripts)
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local player = Players.LocalPlayer
local mouse = player:GetMouse()
local teleportKey = Enum.KeyCode.LeftControl
local teleportKeyHeld = false
local waitingForKeyInput = false
-- Create GUI
local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
gui.Name = "TeleportGui"
-- Create draggable frame
local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 220, 0, 70)
frame.Position = UDim2.new(0.5, -110, 0, 50)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.BackgroundTransparency = 0.2
frame.Active = true
frame.Draggable = true
-- Button inside the frame
local button = Instance.new("TextButton", frame)
button.Size = UDim2.new(1, -20, 1, -20)
button.Position = UDim2.new(0, 10, 0, 10)
button.Text = "Set Teleport Key"
button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
button.TextColor3 = Color3.new(1, 1, 1)
button.Font = Enum.Font.SourceSansBold
button.TextSize = 24
-- Update button label
local function updateButtonLabel()
button.Text = "Key: " .. teleportKey.Name
end
-- Handle setting new keybind
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!