Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
local Bed = script.Parent local billboard = Bed:FindFirstChild("NameGui") local claimSeat = Bed:FindFirstChild("Seat") -- seat part local ownerName = nil local function claimBed(player) if not ownerName then ownerName = player.Name player:SetAttribute("IsOnBed", true) -- set player is on bed to true if billboard then billboard.nameLabel.Text = ownerName billboard.Enabled = true end end end claimSeat:GetPropertyChangedSignal("Occupant"):Connect(function() local Humanoid = claimSeat.Occupant if not Humanoid then return end local Character = Humanoid.Parent local player = game.Players:GetPlayerFromCharacter(Character) if player then if not ownerName and not player:GetAttribute("IsOnBed") then claimBed(player) end end end)
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)