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

Space Between Name Of Object?

Asked by 6 years ago
Edited 6 years ago

I have an Item in my game which has a space in it, My idea was: game.Workspace.["Item Here"] But that doesn't seem to work.

Anyway thanks in advance.

P.S Sorry for the Weird Title the site wouldn't let me title it how I wanted :/

2 answers

Log in to vote
0
Answered by
Rare_tendo 3000 Moderation Voter Community Moderator
6 years ago

It's supposed to be workspace["Item Here"] - the period is to be excluded

0
Thanks! CastlessShadows 2 — 6y
0
Sorry to ask But How do I make this post "Answered" Since I am very new. CastlessShadows 2 — 6y
0
Below this answer, there's a 'Accept Answer' button Rare_tendo 3000 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

When adding brackets, you do not do "game.Workspace.["Item Here"] You would do "game.Workspace["Item Here"] then proceed with the dot after the item.

Answer this question