#error: attempt to index nil with 'CharacterName'
65 messages · Page 1 of 1 (latest)
what is the error
wait
attempt to index nil with 'CharacterName'
local script in StarterCharacterScripts
** You are now Level 1! **
module in REplicatedStorage
you used require(<modulescriptlocation>) to get the module script too right? (characterdata)
yes
dont really get the issue here
me too
sorry you're gonna have to wait for someone else
try checking if it's nil first before using CharacterName
its a string
i can see
shouldnt characterdata be
the module script location
if you havent dont that already
not yet
by the way on other script there is no errors
only at that
hey
i fixed it
but have another error
in line 65
** You are now Level 2! **
Show your server-sided code
That's what's at fault; it's not giving the client what it's expecting
what?
The error, "Attempt to index nil with X", is raised when the following occurs: nil.Member. In other words, you're writing:
EquippedCharacterName = nil.CharacterName
I'm sure you can understand why this would raise an error. The error is informing you that "CharacterData" is nil, and "CharacterData" is a piece of data you receive from the server
Ergo your server code is faulty
BRUH