So I tried to make a chair that falls apart when you sit on it, but i can't seem to get it to work and I have no clue why it isn't working.

local chair = script.Parent
local seat = chair.Seat

if seat.Occupant == 'Humanoid' then
	for i, v in pairs(chair:GetChildren())do
		if v:IsA('Part') then
			v.Anchored = false
		end
	end
end

2 comments

0

try setting seat.occupants to nil

0

I read that you cant write to Seat.Occupant, only read to it.