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

attempt to index nil with 'Character'? I need help.

Here is the source: https://pastebin.com/Kfn1nhRF

Character is defined as inline 83.

local Character = Client.Character or Client.CharacterAdded:Wait()

This script is not a local script in Workspace in a part, when the part is touched it activate the script.

Please help me, I am confusion.

5 comments

1

Just a note for who sees this question: Scripting Helpers have a character limit of 10k, the script is bigger than that (41k characters)

0

don't post scripts that you haven't made man... it's 1530 lines of code we ain't gonna fix that for you, nor even search for the error.

0

the error means Client is nil

2

You mention as well that this is a script, not a local script. Yet, you are attempting to use LocalPlayer. That will not work.

0

I want to die

1 answer

The problem is in the fact that you use "Players.LocalPlayer" inside of a normal script. LocalPlayer can only be used in a local script. I'm not exactly sure what this script is for without context but one way to get the player could be through the variable that game.Players.PlayerAdded gives.

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