"Create a vote kick script in a serverscript. Yes, no buttons and text label are placed at game.StarterGui.VoteKickGui.Frame The vote kick should end when all the players voted or after 5 seconds."
xxxxxxxxxx
-- Server Script
-- Create a global table to store the votes
local votes = {}
-- Create a function to start the vote
function startVote(playerToKick)
-- Set up the GUI
local frame = game.StarterGui.VoteKickGui.Frame
frame.YesButton.Text = "Yes"
frame.NoButton.Text = "No"
frame.TextLabel.Text = "Do you want to kick "..playerToKick.Name.."?"
-- Start the vote
for _, player in pairs(game.Players:GetPlayers()) do
votes[player] = false
frame.Visible = true
end
-- Connect the buttons to the voting functions