Hi, I was wondering if there is a way to detect if a player is sitting down on a seat
https://developer.roblox.com/en-us/api-reference/property/Humanoid/Sit
Combining this with GetPropertyChangedSignal()
, yes it can be possible to detect when a Player is sitting on a Seat
local Humanoid -- Humanoid Object here
Humanoid:GetPropertyChangedSignal("Sit"):Connect(function()
if Humanoid.Sit == true then
print("Sitting")
else
print("Not sitting")
end
end)
Seat.Occupant is an alternative as well (Also just searched up and Humanoid.Seated
exists as well)
Thanks for your help! Really helpful!