The winner is always the same player

I really don’t know how to assist you with this.

Do you have a developer friend?

no, I’m a alone scripter :frowning_face: I mean I do but there builders not coders.

Oh I feel sorry for you dealing with this issue alone :frowning:

LAST RESORT: what I did in this situation was I contacted shawnyg (scripter of erlc) all you need to do is look up him on roblox and follow him and tell him the issue.

Ok, thanks for your help. I appreciate it

No problem at all I’m happy to help.

1 question also did you script this yourself?

yes, everything is made by me I may have took a few functions and took inspirations but everything is done by me.

Ok. I was making sure it isn’t a free model that has a virus also can I have admin or developer rank on your roblox group.

Message me in Devfourm and we can discuss.

function moduleFunction.RemovePlayer()
	for _, connection in pairs(connections) do 
		connection:Disconnect()
		wait()
	end

	for _, player in pairs(playersInRound)do
		player:LoadCharacter()
		print(player)
		wait()
	end	
	
	playerInfo.InRound = false
    playersInRound = {}

end
2 Likes

Oh my gosh, it works! I knew I was missing something! Thanks for your help!

ok i think i found the exact problem. when someone wins lets say alex wins, playersInRound(i will use pIR for short ver.) will have only alex in it meaning pIR = {alex}, and then if you look at the remove player function you do not get alex out of there so alex stays as 1st element of the table, then addplayer function runs adding alex and other again but at 1st element there is another alex staying there so even if he dies or everyone dies 1st element will not change.
so to deal with it just set pIR table to an empty table everytime a winner is decided or nobody is left alive.

Edit: sh_ux already found it with lesser words LOL

1 Like

I appreciate your explaination. Thanks for your help!

1 Like