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 4 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 — 4y
0
i got you guywithapoo 81 — 4y

1 answer

Log in to vote
2
Answered by 4 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