Bro what is roblox studio doing? It's giving errors for 0 reasons

So I literally scripted everything right but look:

ROBLOX_OMG_WHYYYYY

EDIT: I FIXED IT

If you didng know, it’s marking red the “end” and the “return”

Because you can’t have two return statements in a function. The function ends after the first return, so the second return give you an error.

1 Like

Yeah I just noticed LOL xddddddddddd

1 Like

incase you want to return both values

module.FindPlr = function(Player)
   local PlayerService = game:GetService("Players")
   return PlayerService:FindFirstChild(Player) and module
end

would look like:

local player, module = ModuleScript.FindPlr("funnyfunns")
1 Like