local seat = workspace.Seats.Seat10
seat.Changed:connect(function(property)
    if property ~= 'Occupant' then return end
 
local occupant = seat.Occupant
    if occupant then
        local character = occupant.Parent
        local player = game.Players:GetPlayerFromCharacter(character)
        local Humanoid = occupant.Parent:WaitForChild("Humanoid")
        if player then
    Humanoid.JumpPower = 0;
    wait(180) -- however long the round is
    Humanoid.JumpPower = 50
    else
        print("Someone left the seat")
    end
end)

2 comments

0

You're missing an end. Add one above the "end)".

0

Use Advanced Objects and search Seat instead of a script like this.