I just cant understand what is wrong with it, there is an error, it is marked at --
function findPlayer(name)
for _, player in pairs(game.Players:GetPlayers()) do
if player.Name:lower() == name:lower() then
return player
return true end -- 'end' expected(to close 'if' at line 3 near 'return
end
end
end

3 comments
Ima test it out
return nilis superfluous. A function without areturnwill already evaluate tonil. If you did want to return a tuple (multiple values) you couldreturn v, true, however, this is unnecessary sincevwill be truthy whilenilwill not be.Oh, sorry, I didn't really know that. Guess I'm still a bit Out-of-date. Haha! :P