Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would you define something that has spaces in it's name?

Asked by 11 years ago

EDIT - Question Resolved

3 answers

Log in to vote
2
Answered by
jav2612 180
11 years ago

Game.Workspace:FindFirstChild("Linked Sword") or Game.Workspace["Linked Sword"]

There are more ways but those are what I use.

1
Thanks. systematicaddict 295 — 11y
Ad
Log in to vote
1
Answered by 11 years ago

As simple as:

1game.Workspace["Linked Sword"]
0
I hate indexing stuff like that... camelCase is more efficient IMO. OniiCh_n 410 — 11y
0
Huh? ZarsBranchkin 885 — 11y
Log in to vote
1
Answered by
OniiCh_n 410 Moderation Voter
11 years ago

Don't use spaces. It calls for messy indexing. Use camelCase or underscores instead.

Answer this question