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

How to name an object with a space?

Asked by
wjs3456 90
9 years ago

I want to show where the tool is but I can't figure out how to keep the spaces in.

knives = game .Lighting.Throwing Knives

I know this is really simple and I think it has to do with strings but I'm lost. Thanks!

1 answer

Log in to vote
1
Answered by 9 years ago
knives = game.Lighting["Throwing Knives"]
0
Its says <name> expected near "(" wjs3456 90 — 9y
0
Or, you could use game.Lighting:FindFirstChild("Throwing Knives") ipiano 120 — 9y
Ad

Answer this question