This is in a localscript inside a part. not a seat part, just a normal part.
local seat = script.Parent seat.Touched:Connect(function(hit) local humanoid = hit.Parent:FindFirstChild("Humanoid") humanoid.HumanoidStateType = Enum.HumanoidStateType.Seated end)
"local script" you cant use the touched effect in local script try a normal one also heres a little edit of this code (should prevent errors if the thing that touches it doesnt have humanoid)
local seat = script.Parent seat.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") ~= nil then local humanoid = hit.Parent:FindFirstChild("Humanoid") humanoid.HumanoidStateType = Enum.HumanoidStateType.Seated end end)