humanoid:Sit() forcing npc to sit forever?

isnt seat part read only? it the same with occupant!

Well, I think seat part may sit an NPC? Maybe you can try.

i dont understand what are you trying to said

this is the output im occuring to get (after the problem that he jump out):
Screenshot 2021-07-09 132415

Try this:

NPC.Sit = true

-- do something

NPC.Sit = false
1 Like

I will try to do that! thank you!

it doesnt work :frowning: after 2 tries it broke again

Oh! some more info, i made a cooldown so that they will work only once, so i go look at it, the resut was the cooldown was false which means the script runs! and i observe them a while and it work pretty normal except that they cannot seat back in the chair again

is it a sitting bug? or just my script is wrong

Oh, if you want to make it that the npc can sit in the seat again, Iā€™ll show you:

local debounce = false
if debounce == false then

-- do something

debounce = true
wait(2)
debounce = false
end

no no no, i mean that it can sit when it doesnā€™t experienced that problem!

i think it kind of like a bug, not a script error because i saw a properties tab while looking in a server side, it is nil which means that thereā€™s no one sitting it, but some other script just prints it out that there is something sitting it!

welp! i got a problem solve! i just clone a main script into a new script and it works fine! thank you all!!! :heart_eyes: :heart_eyes:
@exp_lol123
@Wqund
@abrah_m

2 Likes