i was trying to convert a script to fe to play in void script builders and i got the error attempt to index a nil value on the line 103
the link to the full script: https://pastebin.com/sSPt0xuH
i was trying to convert a script to fe to play in void script builders and i got the error attempt to index a nil value on the line 103
the link to the full script: https://pastebin.com/sSPt0xuH
I believe you can fix that error by replacing line 103 with this:
char = plr.Character or plr.CharacterAdded:Wait()
I don't know if this is the cause, but sometimes the script runs before the character pointer in 'plr' can load. It might not be the case in an environment like Script Builders however.
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
or
repeat wait() until player.Character ~= nilthanks for answering. it did not work sadly. but i thought thi quetion wont be answered and lost in the sea. fortunately is not!
if you can, try to ue it on the game. i tried on the place 2