
16.6k Views
3.0k Executions
Sit button
Universal Script 馃搶
Cadhoun10K executions
2 years ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Can you sit down now!!
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








How do I use this?
@maxson987c you have a button in it