---
title: "Lay button | Universal Roblox Script - ScriptBlox"
description: "Lay button for any Roblox game: Nothing, u can just lay"
canonical_url: "https://scriptblox.com/script/Universal-Script-Lay-button-21244"
meta:
  "og:description": "Lay button for any Roblox game: Nothing, u can just lay"
  "og:image": "https://scriptblox.com/images/script/3591630-1730218689304.png"
  "og:title": "Lay button | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Lay button for any Roblox game: Nothing, u can just lay"
  "twitter:image": "https://scriptblox.com/images/script/3591630-1730218689304.png"
  "twitter:title": "Lay button | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/3591630-1730218689304.png)

# **Lay button**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![Cadhoun](https://scriptblox.com/images/photo/67109f93f1a77b537dfa8a07-1733030699265.png) [Cadhoun](https://scriptblox.com/u/Cadhoun)10K executions**

2 years ago

[**Get an executor**](https://scriptblox.com/executors?kind=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

Nothing, u can just lay

## **Updates **

1. Mar 27, 2025

   ****Script edited:**** Create script

[View Raw](https://scriptblox.com/raw/Universal-Script-Lay-button-21244)

```
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 "Lay"
local layButton = Instance.new("TextButton")
layButton.Size = UDim2.new(0.05, 0, 0.05, 0) -- Tamaño pequeño
layButton.Position = UDim2.new(0.4, 0, 0.4, 0)
layButton.Text = "Lay"
layButton.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) -- Gris
layButton.BackgroundTransparency = 0.48 -- 48% transparente
layButton.Parent = screenGui

-- Variable para rastrear si el personaje está acostado
local isLaying = false

-- Función para alternar entre acostarse y regresar a la posición normal
layButton.MouseButton1Click:Connect(function()
    local character = player.Character or player.CharacterAdded:Wait()
    local humanoid = character:FindFirstChildOfClass("Humanoid")
    local rootPart = character:FindFirstChild("HumanoidRootPart")

    if humanoid and rootPart then
        if isLaying then
            -- Volver a la posición normal
            humanoid.PlatformStand = false
            rootPart.CFrame = rootPart.CFrame * CFrame.Angles(math.rad(-90), 0, 0) -- Revertir la rotación
            isLaying = false
        else
            -- Acostarse
            humanoid.PlatformStand = true
            rootPart.CFrame = rootPart.CFrame * CFrame.Angles(math.rad(90), 0, 0) -- Acostar al personaje
            isLaying = true
        end
    end
end)

-- Botón "Remove"
local removeButton = Instance.new("TextButton")


```

## **Comments **

**0**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/Universal-Script-Lay-button-21244)

No comments yet. Be the first!

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-Lay-button-21244#script","url":"https://scriptblox.com/script/Universal-Script-Lay-button-21244","name":"Lay button","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"Cadhoun","url":"https://scriptblox.com/u/Cadhoun"},"datePublished":"2024-10-29T16:18:09.344Z","image":"https://scriptblox.com/images/script/3591630-1730218689304.png","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-Lay-button-21244#webpage","@type":"WebPage","description":"Lay button for any Roblox game: Nothing, u can just lay","name":"Lay button | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-Lay-button-21244","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-Lay-button-21244#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-Lay-button-21244#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-Lay-button-21244"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-Lay-button-21244#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"Lay button","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
