Universal Script 馃搶
16.6k Views
3.0k 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!!

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
Universal Script 馃搶
40.2k
817.4k
Bumped 1 hour ago
Universal Script 馃搶
133.5k
24.2k
Bumped 2 hours ago
Key System
Universal Script 馃搶
111
9
Approved 2 hours ago
Universal Script 馃搶
103
4
Approved 2 hours ago
Universal Script 馃搶
6.5k
118
Bumped 3 hours ago