LocalScript
-- (Menew)

gui.TeamSelection.Buttons.Pur.MouseButton1Down:Connect(function()
    if player:FindFirstChild("IsAdmin") or player:FindFirstChild("IsChad") then
        JoinTeam("TPC")
        soundmod.playsound(clicksou)
        local starttime = tick()
        repeat
            wait()
            if (tick() - starttime) >= 2 then
                gui.TeamSelection.bad.Visible = true
                ToggleTeamSelection(true)
                return
            end
        until Player.Startus.Team.Value ~= "Spectator"
        gui.TeamSelection.bad.Visible = false
    else
        gui.TeamSelection.Buttons.Pur.Visible = false
    end
end)

-- This is where the monkys will join Yellow
gui.TeamSelection.Buttons.Ylw.MouseButton1Down:Connect(function()
    if (wkspc.TwoTeam.Value == true and not player:FindFirstChild("IsAdmin")) or not player:FindFirstChild("IsChad") then
        return
    end
    if (player:FindFirstChild("IsAdmin") or gui.TeamSelection.Buttons.Ylw.lock.Visible) then
        JoinTeam("TYC")
        soundmod.playsound(clicksou)
        local starttime = tick()
        repeat
            wait()
            if (tick() - starttime) >= 2 then
                gui.TeamSelection.bad.Visible = true
                ToggleTeamSelection(true)
                return
            end
        until Player.Status.Team.Value ~= "Spectator"
    end
end

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: