I am pretty much a noob at scripting, and I cannot find a way to make a script that disables all seats in the game for a few seconds of time but then re enables them back to being able to be sat in. I looked up about it and didn't really find anything so I don't if you can either. All help is appreciated.
COMMUNITY QUESTION
How to make disabling and re enabling seat script?
1 answer
Grab a Table containing all Seats in the Game and turn it's Bool Property "Disabled", to true. Then in a few seconds. Turn the Bool Property "Disabled", to false. Example:
for _,object in pairs(Game:GetDescendants()) do
if object:IsA"Seat" then
seat.Disabled = true
end
end
wait(5)
for _,seat in pairs(Game:GetDescendants()) do
if object:IsA"Seat" then
seat.Disabled = false
end
end
1 comment
0
btw i hope you noticed that you can't do Class Checks with a Table containing Game Objects..
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Doesn't Roblox already do this for you?