Universal Script 📌
16.8k Views
3.7k Executions

Sit button

Universal Script 📌
Cadhoun
Cadhoun10K executions
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

Can you sit down now!!

Updates

  1. Script edited: Create script

View Raw
local player = game.Players.LocalPlayer
local screenGui = Instance.new("ScreenGui")
screenGui.ResetOnSpawn = false -- Asegura que la interfaz no se reinicie con el personaje
screenGui.Parent = player:WaitForChild("PlayerGui")

-- Botón "Sit"
local sitButton = Instance.new("TextButton")
sitButton.Size = UDim2.new(0.05, 0, 0.05, 0) -- Tamaño pequeño
sitButton.Position = UDim2.new(0.4, 0, 0.4, 0)
sitButton.Text = "Sit"
sitButton.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) -- Gris
sitButton.BackgroundTransparency = 0.48 -- 48% transparente
sitButton.Parent = screenGui

-- Función para sentarse
sitButton.MouseButton1Click:Connect(function()
    local character = player.Character or player.CharacterAdded:Wait()
    local humanoid = character:FindFirstChildOfClass("Humanoid")
    if humanoid then
        humanoid.Sit = true -- Hace que el personaje se siente
    end
end)

-- Botón "Remove"
local removeButton = Instance.new("TextButton")
removeButton.Size = UDim2.new(0.05, 0, 0.05, 0) -- Tamaño pequeño
removeButton.Position = UDim2.new(0.45, 0, 0.4, 0) -- Junto al botón "Sit"
removeButton.Text = "Remove"
removeButton.BackgroundColor3 = Color3.new(1, 0, 0) -- Rojo
removeButton.BackgroundTransparency = 0.48 -- 48% transparente
removeButton.Parent = screenGui

-- Función para quitar la interfaz
removeButton.MouseButton1Click:Connect(function()
    screenGui:Destroy() -- Quita la interfaz
end)

-- Hacer que los botones sean movibles
local dragging = false
local dragStart = nil


Comments

2
Log in to join the conversation. Login
maxson987c's profile picture
maxson987c2 years ago(edited)

How do I use this?

2
Cadhoun's profile picture
CadhounUploader7 months ago

@maxson987c you have a button in it

1

More universal scripts

See all