I made a local script and put it in the statergui, the local script is suppost to test if the player is sitting and if it does it kills them.
Sit = game.Players.Character.Humanoid.Sit Humanoid = game.Players.Character.Humanoid if Sit == true then Humanoid.Health = 0 end
Well, to access the LocalPlayer, you need to add that to the path. Also, your script doesn't constantly check, so therefore you would need a loop.
while wait() do repeat wait() until game.Players.LocalPlayer.Character -- Lets it load Sit = game.Players.LocalPlayer.Character.Humanoid.Sit Humanoid = game.Players.LocalPlayer.Character.Humanoid if Sit == true then Humanoid.Health = 0 end end