So i'm trying to compare strings and I'm confused on why this outputs as "uh..oh.." when they are the exact same???
nombre = "CHOCO73887" if plr:GetPlayers()[1] == nombre then print ("no duh...") else print("uh...oh...") end
(as you can tell by my account, my roblox name is CHOCO73887) Can anyone help solve this? Thanks in advance
So u actually have to do this in a for loop if im right
local nombre = "CHOCO73887" for i , v in pairs (game.Players:GetPlayers())do -- loops trough players if v == nombre then -- if it finds ur name then it will print no duh if it doesnt find ur name it will print uh...oh... print ("no duh...") else print("uh...oh...") end end