
Keyless

-- Gui to Lua
-- Version: 3.2
-- Instances:
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Autofarm = Instance.new("ScreenGui")
local MainFrame = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local IndicatorFrame = Instance.new("Frame")
local Indicator = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local UICorner_2 = Instance.new("UICorner")
local IndicatorToggle = Instance.new("TextButton")
local Status = Instance.new("TextLabel")
local CloseButton = Instance.new("TextButton")
local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
local CooldownBox = Instance.new("TextBox")
local TeleportCooldownTitle = Instance.new("TextLabel")
local UICorner_3 = Instance.new("UICorner")
local UIAspectRatioConstraint_2 = Instance.new("UIAspectRatioConstraint")
-- Properties:
Autofarm.Name = "Autofarm"
Autofarm.Parent = LocalPlayer:WaitForChild("PlayerGui") -- IMPORTANTE: PlayerGui
Autofarm.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
MainFrame.Name = "MainFrame"
MainFrame.Parent = Autofarm
MainFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
MainFrame.BackgroundTransparency = 0.500
MainFrame.BorderSizePixel = 0
MainFrame.Size = UDim2.new(0.25, 0, 0.25, 0)
Title.Name = "Title"
Title.Parent = MainFrame
Title.BackgroundTransparency = 1.000
Title.Size = UDim2.new(1, 0, 0.2, 0)
Title.Font = Enum.Font.SourceSansSemibold
Title.Text = "Click Teleport v1"
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.TextScaled = true
IndicatorFrame.Name = "IndicatorFrame"
IndicatorFrame.Parent = MainFrame
IndicatorFrame.AnchorPoint = Vector2.new(0.5, 0.5)
IndicatorFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
IndicatorFrame.BackgroundTransparency = 0.500
IndicatorFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
IndicatorFrame.Size = UDim2.new(0.45, 0, 0.25, 0)
Indicator.Name = "Indicator"
Indicator.Parent = IndicatorFrame
Indicator.BackgroundColor3 = Color3.fromRGB(255, 84, 84)
Indicator.Position = UDim2.new(0.5, 0, 0, 0)
Indicator.Size = UDim2.new(0.5, 0, 1, 0)
UICorner.CornerRadius = UDim.new(0.4, 0)
UICorner.Parent = Indicator
UICorner_2.CornerRadius = UDim.new(0.4, 0)
UICorner_2.Parent = IndicatorFrame
IndicatorToggle.Name = "IndicatorToggle"
IndicatorToggle.Parent = IndicatorFrame
IndicatorToggle.BackgroundTransparency = 1.000
IndicatorToggle.Size = UDim2.new(1, 0, 1, 0)
IndicatorToggle.Text = ""
Status.Name = "Status"
Status.Parent = MainFrame
Status.AnchorPoint = Vector2.new(0.5, 0.7)
Status.BackgroundTransparency = 1.000
Status.Position = UDim2.new(0.5, 0, 0.75, 0)
Status.Size = UDim2.new(0.4, 0, 0.15, 0)
Status.Font = Enum.Font.SourceSansSemibold
Status.Text = "OFF"
Status.TextColor3 = Color3.fromRGB(255, 84, 84)
Status.TextScaled = true
CloseButton.Name = "CloseButton"
CloseButton.Parent = MainFrame
CloseButton.AnchorPoint = Vector2.new(1, 0)
CloseButton.BackgroundColor3 = Color3.fromRGB(255, 82, 82)
CloseButton.Position = UDim2.new(1, 0, 0, 0)
CloseButton.Size = UDim2.new(0.2, 0, 0.2, 0)
CloseButton.Font = Enum.Font.SourceSansBold
CloseButton.Text = "X"
CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
CloseButton.TextScaled = true
CooldownBox.Name = "CooldownBox"
CooldownBox.Parent = MainFrame
CooldownBox.AnchorPoint = Vector2.new(0, 1)
CooldownBox.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
CooldownBox.BackgroundTransparency = 0.5
CooldownBox.Position = UDim2.new(0.04, 0, 0.96, 0)
CooldownBox.Size = UDim2.new(0.25, 0, 0.2, 0)
CooldownBox.Font = Enum.Font.SourceSans
CooldownBox.PlaceholderText = "Cooldown..."
CooldownBox.Text = "1"
CooldownBox.TextColor3 = Color3.fromRGB(255, 255, 255)
CooldownBox.TextScaled = true
TeleportCooldownTitle.Name = "TeleportCooldownTitle"
TeleportCooldownTitle.Parent = CooldownBox
TeleportCooldownTitle.AnchorPoint = Vector2.new(0.5, 0)
TeleportCooldownTitle.BackgroundTransparency = 1.000
TeleportCooldownTitle.Position = UDim2.new(0.5, 0, -0.5, 0)
TeleportCooldownTitle.Size = UDim2.new(1.1, 0, 0.6, 0)
TeleportCooldownTitle.Font = Enum.Font.SourceSansSemibold
TeleportCooldownTitle.Text = "Teleport cooldown:"
TeleportCooldownTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
TeleportCooldownTitle.TextScaled = true
UICorner_3.CornerRadius = UDim.new(0.2, 0)
UICorner_3.Parent = MainFrame
UIAspectRatioConstraint_2.Parent = MainFrame
UIAspectRatioConstraint_2.AspectRatio = 1.98
-- Script principal:
local TS = game:GetService("TweenService")
local Mouse = LocalPlayer:GetMouse()
local Enabled = false
local TeleportCooldown = 1
local LastTeleport = 0
local ColorOn = Color3.fromRGB(125, 255, 123)
local ColorOff = Color3.fromRGB(255, 84, 84)
local function TeleportToClick()
local Character = LocalPlayer.Character
if not Character or not Character:FindFirstChild("HumanoidRootPart") then return end
if tick() - LastTeleport < TeleportCooldown then return end
LastTeleport = tick()
local targetPos = Mouse.Hit.p
Character:PivotTo(CFrame.new(targetPos + Vector3.new(0, 3, 0)))
end
Mouse.Button1Down:Connect(function()
if Enabled then
TeleportToClick()
end
end)
IndicatorToggle.MouseButton1Click:Connect(function()
Enabled = not Enabled
if Enabled then
TS:Create(Indicator, TweenInfo.new(.2), {BackgroundColor3 = ColorOn, Position = UDim2.fromScale(0,0)}):Play()
Status.Text = "ON"
Status.TextColor3 = ColorOn
else
TS:Create(Indicator, TweenInfo.new(.2), {BackgroundColor3 = ColorOff, Position = UDim2.fromScale(0.5,0)}):Play()
Status.Text = "OFF"
Status.TextColor3 = ColorOff
end
end)
CooldownBox.FocusLost:Connect(function()
local Input = CooldownBox.Text
if not tonumber(Input) then return end
TeleportCooldown = tonumber(Input)
end)
CloseButton.MouseButton1Click:Connect(function()
TS:Create(MainFrame, TweenInfo.new(.2), {Size = UDim2.fromScale(.25, 0)}):Play()
task.wait(.5)
Autofarm:Destroy()
end)
uwu