I want to know how many players are seated, but i fail at it.
local part = script.Parent
part.Touched:Connect(function(hit)
if hit.Parent.ArmyTruck then
print("Army Truck")
local Players = game.Players
for _, player in pairs(Players:GetPlayers()) do
if not player.Character then
print("waiting for character")
player.CharacterAdded:wait();
char = player.Character
else
char = player.Character
end
if char.Humanoid.Seated == true then
print("Waiting for other players")
else
print("No one is seating")
end
end
end
end)

1 comment
try char:FindFirstChild("Humanoid").Seated ~= nil then -- code end