mentors = {"Enchanted4Dan","officialpm","AnuCat","Cald_fan","Alexoct"} for i,v in ipairs(mentors) do print(v..": "..plr.Name) -- so i can see if the values are the same, which they are print(type(v)..": "..type(plr.Name)) -- so i can see if the value types are the same, which they are if v:lower() == (plr.Name:lower()) then print("success") server.Remote.MakeGui(v,"MentorProgram",{ StudentsCards = StudentsCards, MentorCards = MentorCards, Player = plr }) else print(v.." and "..plr.Name.." are not equal") -- tells me they are not the same, when they are end end
when it prints it prints this, this for my name
:: Kronos :: Cald_fan : Cald_fan
:: Kronos :: string: string
:: Kronos :: Cald_fan and Cald_fan are not equal
why doesnt the if statement return true?
Thanks to @kingdom5 as he said said i should use user id and it fixed the problem!