Admins = {} -- Up to 3 Admins
Children = {} -- Do not touch
function Children(player) -- This will turn everyone who isn't part of the list into children
local Player = player:GetFullName()
print(player)
if Player.UserID == Admins[1] or Player.UserID == Admins[2] or Player.UserID == Admins[3] then
print("DayCareWorker")
end
if Player.UserID ~= Admins[1] or Player.UserID ~= Admins[2] or Player.UserID ~= Admins[3] then
print("Child")
end
end
game.Players.PlayerAdded:connect(Children)
This is my FIRST time trying to work with a table, and I'm clearly not understanding it enough.
I haven't gotten to the big stuff, but the first IF statement is suppose to send the message Daycareworker in the output, but if that isn't true then it'll skip over that and then head to the second one in this function and print Child.
I'm doing all this to see if it works correctly.
But the only thing I'm getting in the output is : Player1 DayCareWorker
Even if I take the values out of the tables.
How do I make the correct if statement run when it's suppose to. This is all in a script, but should I put it in a local script?

1 comment
This is a very wrong and sorta ignorant answer.