Paralysis effect question

I would like to make a effect where someone gets paralysed and are forced to sit and cannot get back up until further notice. How could I achieve this? I already tried settings the JP to 0 but it stands up

1 Like
Humanoid.StateChanged:Connect(function(_, newState)
if newState ~= Enum.HumanoidStateType.Seated then
Humanoid:ChangeState(Enum.HumanoidStateType.Seated)
end
end)

But would this prevent the player from getting up even if they press space and also how could I put them back to normal after

Didn’t you want them to not get up until further notice? You can disconnect the event and change their state or disconnect the event and let them get up on their own by pressing space.

Yes until further notice so after like 10-15 seconds they can walk normally again

you can try making a variable storing when that happens, and disconnect the event when that variable changes