#ServerScriptService.DataStore:27: attempt to index nil with 'Humanoid'

7 messages · Page 1 of 1 (latest)

warm perch
#

after local if succes put

if not player.Character then player.CharacterAdded:Wait() end

rotund karma
#

the error is when the player leaves

#

player.Character.Humanoid:GetAttribute("Kills"); < right here

warm perch
#

Yes bc the character is not loaded

rotund karma
#

but that part of the script

#

is when the player leaves

#

not when the player joins