Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Explain character in script and local script ?

I was trying to access plr.charcter in script but was unable to access it Output showed -Attempt to index nil with Character I tried characteradded event too but it didn't work

But when i do the same thing in local script it works And i can access character there

Why is that, can anyone explain it?

5 comments

0

Attempt to index nil with Character*

0

I'm very confused.

0

feahren please help me

0

when can we access character in script ?

0

when the character loads

1 answer

local char = game.Players.LocalPlayer.Character :D

This discussion is preserved as it was. New answers, comments, and votes are closed.