Auto Sit
Key RequiredUniversal

Auto Sit

Universal ScriptNinjastrongNinjastrong 367 views 268 executesUpdated Jan 7, 2026
Unrated
00
Lua Script•80 lines (2564 chars)
--[=[
 Sit Hub GUI
]=]

local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer

local LMG2L = {}

-- ScreenGui
LMG2L["ScreenGui_1"] = Instance.new("ScreenGui")
LMG2L["ScreenGui_1"].Parent = LocalPlayer:WaitForChild("PlayerGui")
LMG2L["ScreenGui_1"].ZIndexBehavior = Enum.ZIndexBehavior.Sibling
LMG2L["ScreenGui_1"].ResetOnSpawn = false

-- Frame
LMG2L["Frame_2"] = Instance.new("Frame")
LMG2L["Frame_2"].Parent = LMG2L["ScreenGui_1"]
LMG2L["Frame_2"].BorderSizePixel = 0
LMG2L["Frame_2"].BackgroundColor3 = Color3.fromRGB(233, 0, 255)
LMG2L["Frame_2"].Size = UDim2.new(0, 240, 0, 198)
LMG2L["Frame_2"].Position = UDim2.new(0, 200, 0, 16)

Instance.new("UICorner", LMG2L["Frame_2"])

local stroke = Instance.new("UIStroke", LMG2L["Frame_2"])
stroke.Color = Color3.fromRGB(28, 255, 13)

Instance.new("UIDragDetector", LMG2L["Frame_2"])

-- Unsit Button
LMG2L["TextButton_8"] = Instance.new("TextButton")
LMG2L["TextButton_8"].Parent = LMG2L["Frame_2"]
LMG2L["TextButton_8"].BorderSizePixel = 0
LMG2L["TextButton_8"].TextSize = 36
LMG2L["TextButton_8"].BackgroundColor3 = Color3.fromRGB(7, 255, 7)
LMG2L["TextButton_8"].Size = UDim2.new(0, 210, 0, 60)
LMG2L["TextButton_8"].Position = UDim2.new(0, 14, 0, 64)
LMG2L["TextButton_8"].Text = "Unsit"
Instance.new("UICorner", LMG2L["TextButton_8"])

-- Sit Button
LMG2L["TextButton_6"] = Instance.new("TextButton")
LMG2L["TextButton_6"].Parent = LMG2L["Frame_2"]
LMG2L["TextButton_6"].BorderSizePixel = 0
LMG2L["TextButton_6"].TextSize = 36
LMG2L["TextButton_6"].BackgroundColor3 = Color3.fromRGB(105, 255, 4)
LMG2L["TextButton_6"].Size = UDim2.new(0, 216, 0, 52)
LMG2L["TextButton_6"].Position = UDim2.new(0, 12, 0, 136)
LMG2L["TextButton_6"].Text = "Sit down"
Instance.new("UICorner", LMG2L["TextButton_6"])

-- Title
LMG2L["TextLabel_a"] = Instance.new("TextLabel")
LMG2L["TextLabel_a"].Parent = LMG2L["Frame_2"]
LMG2L["TextLabel_a"].BorderSizePixel = 0
LMG2L["TextLabel_a"].TextSize = 36
LMG2L["TextLabel_a"].BackgroundTransparency = 1
LMG2L["TextLabel_a"].Size = UDim2.new(0, 240, 0, 60)
LMG2L["TextLabel_a"].Text = "Sit Hub"

-- =====================
-- LOGIC BUTTON
-- =====================
local function getHumanoid()
	local char = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
	return char:WaitForChild("Humanoid")
end

-- Sit
LMG2L["TextButton_6"].MouseButton1Click:Connect(function()
	local humanoid = getHumanoid()
	humanoid.Sit = true
end)

-- Unsit
LMG2L["TextButton_8"].MouseButton1Click:Connect(function()
	local humanoid = getHumanoid()
	humanoid.Sit = false
end)

Features & Information

• sit • unsit

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts