I need help listing winners and awarding points

I didn’t find the fix yet. I’m trying.

I think I found it, I forgot to put #s in front of some stuff

Nvm, this is all I have managed to figure out so far and it still doesn’t work. image

ok so i really dont understand what ur doing

children will always be a table idk why status.value is being set to children.name??? you should be getting an error in output bar.

you then go into a loop and redeclare v.name as children[i].Name which idk if that should be but all u need to do is nothing–v.Name is the name of the player for the current itteration

i do not understand what ur doing at getfullname, why not instead do char = workspace…:findfirstchild(v.Name)

everything else should be good to go

Status.value is basically what will be displayed as the winners on screen after the game. For some reason I am having no errors. I don’t know what I am doing basically because I think I tried that and nothing really worked. I can show you code for a working level if you want to see what a working one looks like. I’ll try to take your tips into consideration when I am fixing this. This is one of the working games win script thing image

as for listing all players you could do this (can’t guarrentee it will work though)

status.value = status.value .. " " .. v.Name

if i==#children then
status.value = status.value .. " are the winners!"
end

again dont copy as capitalizations are incorrect also can’t be sure it 100% functional but logic is there.

as for it not erroring, you need a test print under the elseif … >=2 condition and see if its passing it to begin with.

also @supdograinbarff move the status.value code into the for loop if it wasnt clear. and get rid of fullname thing

you may also need to reset the value of status before ending the game if you dont already i.e. value=""

Ok, I took your advice and tried my best to figure out how to do this, I cam up with the following lines of code:


I haven’t tested it out, but hopefully it will work. What I just don’t get though is why it doesn’t even give me any points if there is just one player in game. It’s weird.

@supdograinbarff

change value to Value as i noted that capitalizations were incorrect (idk why ur not getting a red line in ur code)

also the elseif condition is for > 1 not ==1 so its not gonna pass (nvm i misread that part idk why it would not be working)

put a test print in each of conditions to see if the script runs through it

print("test")

@supdograinbarff

you might also add “test if” and “test elseif” to differentiate

@supdograinbarff

Ok, I put the print test things and none of them went through, I also fixed the value stuff and I fixed a small indentation error.

you need to verify if the script is running through earlier in the code like above everything utilize test prints

let me know when you tested everything, if it is running then perhaps try printing #workspace.Ingame:GetChildren() which will print the value of it, I have a suspicion it is == 0

I just realized I missed something crucial, I forgot to add an intvalue named lavajump to the map lavajump in the map folder. I added it just now so hopefully everything will go through. it wasn’t going through cuz I hadn’t added it yet.


Imma test it again and check if the test prints go through

1 Like

Ok, it appears to be working now, thx dude! I haven’t tested it out to see if it works for 2 or more players yet, but I promise when I do and if something goes wrong I will keep you updated. thx man

when u do test and it works as intended i’d appreciate one of my post to be marked as solution

let me know if a problem occurs

Ok, no problem man. I gotchu. I’ll mark u as a solution