Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local TweenService = game:GetService("TweenService")
- local UserInputService = game:GetService("UserInputService")
- local VirtualUser = game:GetService("VirtualUser")
- local LocalPlayer = Players.LocalPlayer
- -- Check PlaceId
- local validPlaceIds = {70958439642574, 97536064418541}
- if not table.find(validPlaceIds, game.PlaceId) then
- warn("❌ Wrong Game! Please open TK Hangout.")
- return
- end
- -- === CONFIGURATION ===
- local Config = {
- Speed = 80,
- TargetUser = "Gunduz_288",
- SpeedEnabled = false,
- NoclipEnabled = false,
- InfJumpEnabled = false,
- HidePlayersEnabled = false,
- AutoFarmEnabled = false,
- AntiRejoinEnabled = false
- }
- local connections = {}
- -- === UI UTILS ===
- local function makeDraggable(frame, handle)
- local dragging, dragInput, dragStart, startPos
- handle.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = frame.Position
- end
- end)
- handle.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement then dragInput = input end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- local delta = input.Position - dragStart
- frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- end)
- UserInputService.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end
- end)
- end
- local function notify(title, text)
- local sg = Instance.new("ScreenGui", game:GetService("CoreGui"))
- local frame = Instance.new("Frame", sg)
- frame.Size = UDim2.new(0, 250, 0, 60)
- frame.Position = UDim2.new(1, 10, 0.8, 0)
- frame.BackgroundColor3 = Color3.fromRGB(20, 20, 25)
- Instance.new("UICorner", frame)
- local stroke = Instance.new("UIStroke", frame)
- stroke.Color = Color3.fromRGB(0, 170, 255)
- local t = Instance.new("TextLabel", frame)
- t.Size = UDim2.new(1, 0, 0.4, 0)
- t.Text = title
- t.TextColor3 = Color3.fromRGB(0, 170, 255)
- t.Font = Enum.Font.GothamBold
- t.BackgroundTransparency = 1
- local b = Instance.new("TextLabel", frame)
- b.Size = UDim2.new(1, 0, 0.6, 0)
- b.Position = UDim2.new(0, 0, 0.4, 0)
- b.Text = text
- b.TextColor3 = Color3.new(1, 1, 1)
- b.Font = Enum.Font.Gotham
- b.BackgroundTransparency = 1
- frame:TweenPosition(UDim2.new(1, -260, 0.8, 0), "Out", "Back", 0.5)
- task.delay(3, function()
- frame:TweenPosition(UDim2.new(1, 10, 0.8, 0), "In", "Quad", 0.5)
- task.wait(0.5)
- sg:Destroy()
- end)
- end
- -- === FEATURES ===
- local function getChar() return LocalPlayer.Character end
- local function getHum() return getChar() and getChar():FindFirstChildOfClass("Humanoid") end
- -- Auto Farm Logic
- task.spawn(function()
- while task.wait(1) do
- if Config.AutoFarmEnabled then
- pcall(function()
- local gui = LocalPlayer.PlayerGui
- for _, v in pairs(gui:GetDescendants()) do
- if v:IsA("TextBox") and string.find(v.PlaceholderText or "", "username") then
- v.Text = Config.TargetUser
- end
- if v:IsA("TextButton") and v.Text == "Start getting folos coins" then
- firesignal(v.MouseButton1Click)
- end
- end
- end)
- end
- end
- end)
- -- Noclip Logic
- connections.Noclip = RunService.Stepped:Connect(function()
- if Config.NoclipEnabled and getChar() then
- for _, v in pairs(getChar():GetDescendants()) do
- if v:IsA("BasePart") then v.CanCollide = false end
- end
- end
- end)
- -- Speed Logic
- connections.Speed = RunService.Heartbeat:Connect(function()
- local hum = getHum()
- if Config.SpeedEnabled and hum and hum.MoveDirection.Magnitude > 0 then
- getChar():TranslateBy(hum.MoveDirection * (Config.Speed/100))
- end
- end)
- -- Inf Jump
- UserInputService.JumpRequest:Connect(function()
- if Config.InfJumpEnabled and getHum() then
- getHum():ChangeState(Enum.HumanoidStateType.Jumping)
- end
- end)
- -- === UI CONSTRUCTION ===
- local ScreenGui = Instance.new("ScreenGui", game:GetService("CoreGui"))
- local Main = Instance.new("Frame", ScreenGui)
- Main.Size = UDim2.new(0, 320, 0, 400)
- Main.Position = UDim2.new(0.5, -160, 0.4, -200)
- Main.BackgroundColor3 = Color3.fromRGB(15, 15, 20)
- Main.BorderSizePixel = 0
- Instance.new("UICorner", Main).CornerRadius = UDim.new(0, 10)
- local TopBar = Instance.new("Frame", Main)
- TopBar.Size = UDim2.new(1, 0, 0, 40)
- TopBar.BackgroundColor3 = Color3.fromRGB(0, 120, 215)
- Instance.new("UICorner", TopBar)
- makeDraggable(Main, TopBar)
- local Title = Instance.new("TextLabel", TopBar)
- Title.Size = UDim2.new(1, 0, 1, 0)
- Title.Text = "TK HUB V2.5 [ENGLISH]"
- Title.TextColor3 = Color3.new(1, 1, 1)
- Title.Font = Enum.Font.GothamBlack
- Title.TextSize = 16
- Title.BackgroundTransparency = 1
- local Content = Instance.new("ScrollingFrame", Main)
- Content.Size = UDim2.new(1, -20, 1, -60)
- Content.Position = UDim2.new(0, 10, 0, 50)
- Content.BackgroundTransparency = 1
- Content.CanvasSize = UDim2.new(0, 0, 0, 550)
- Content.ScrollBarThickness = 3
- local layout = Instance.new("UIListLayout", Content)
- layout.Padding = UDim.new(0, 10)
- -- COMPONENTS
- local function AddToggle(name, callback)
- local btn = Instance.new("TextButton", Content)
- btn.Size = UDim2.new(1, 0, 0, 40)
- btn.BackgroundColor3 = Color3.fromRGB(30, 30, 35)
- btn.Text = name .. ": OFF"
- btn.Font = Enum.Font.GothamBold
- btn.TextColor3 = Color3.new(1, 1, 1)
- btn.TextSize = 13
- Instance.new("UICorner", btn)
- local enabled = false
- btn.MouseButton1Click:Connect(function()
- enabled = not enabled
- callback(enabled)
- btn.Text = name .. (enabled and ": ON" or ": OFF")
- TweenService:Create(btn, TweenInfo.new(0.3), {BackgroundColor3 = enabled and Color3.fromRGB(0, 170, 100) or Color3.fromRGB(30, 30, 35)}):Play()
- end)
- end
- local function AddInput(placeholder, default, callback)
- local box = Instance.new("TextBox", Content)
- box.Size = UDim2.new(1, 0, 0, 35)
- box.BackgroundColor3 = Color3.fromRGB(25, 25, 30)
- box.PlaceholderText = placeholder
- box.Text = default
- box.TextColor3 = Color3.new(1, 1, 1)
- box.Font = Enum.Font.Gotham
- box.TextSize = 13
- Instance.new("UICorner", box)
- box.FocusLost:Connect(function() callback(box.Text) end)
- end
- -- ADDING BUTTONS
- AddInput("Target Username", Config.TargetUser, function(val) Config.TargetUser = val end)
- AddToggle("Auto Farm Followers", function(v) Config.AutoFarmEnabled = v end)
- AddInput("Speed Amount (Default 80)", "80", function(val) Config.Speed = tonumber(val) or 80 end)
- AddToggle("Enable Movement Speed", function(v) Config.SpeedEnabled = v end)
- AddToggle("Noclip (Walk Through Walls)", function(v) Config.NoclipEnabled = v end)
- AddToggle("Infinite Jump", function(v) Config.InfJumpEnabled = v end)
- AddToggle("Anti-AFK System", function(v) notify("Anti-AFK", v and "Enabled" or "Disabled") end)
- -- Minimalistic Toggle Button
- local Tgl = Instance.new("TextButton", ScreenGui)
- Tgl.Size = UDim2.new(0, 50, 0, 50)
- Tgl.Position = UDim2.new(0, 20, 0.5, 0)
- Tgl.Text = "TK"
- Tgl.BackgroundColor3 = Color3.fromRGB(0, 120, 215)
- Tgl.TextColor3 = Color3.new(1,1,1)
- Tgl.Font = Enum.Font.GothamBlack
- Instance.new("UICorner", Tgl).CornerRadius = UDim.new(1, 0)
- Tgl.MouseButton1Click:Connect(function() Main.Visible = not Main.Visible end)
- -- Anti-AFK
- LocalPlayer.Idled:Connect(function()
- VirtualUser:CaptureController()
- VirtualUser:ClickButton2(Vector2.new())
- end)
- notify("TK HUB LOADED", "Welcome, " .. LocalPlayer.Name)
Advertisement