• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lib.lua and login.lua problem

Code:
print(player.uid)
nextUseStaminaTime[player.uid] = 0
If printing player.uid comes out as nil, that's your issue.

I think you want to use player:getId() instead.
Although.. I have no idea what the table is for, so I'm just guessing. ^^
 
nextUseStaminaTime[player.uid] = 0

to

nextUseStaminaTime[player] = 0

or

nextUseStaminaTime[player:getId()] = 0
 

Similar threads

Back
Top