Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to know when a Player is seated?

Asked by 5 years ago

Hello, I am wondering, how would I run a function when a player is seated? I know I will need a script that will get the model of the player and need to check if Humanoid.Sit = true. Thanks!

0
do u still have that poo thebayou 441 — 5y
0
i got you guywithapoo 81 — 5y

1 answer

Log in to vote
2
Answered by 5 years ago

Use GetPropertyChangedSignal.

local human = player.Character
human:GetPropertyChangedSignal("Sit"):Connect(function()
    if human.Sit == true then
        -- insert whatever you want to happen
    end
end)
Ad

Answer this question