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

(unsolved) How to put a word with spaces inside of a script?

Asked by 2 years ago
Edited 2 years ago

I need to put a tool with the name [Gun-1 SG] into a localscript so I'm able to use it, but I have no idea how to do this.

The full script is this:

local localPlayer = game.Players.LocalPlayer

game.Workspace.Players..localPlayer..[Gun1 SG].Default.TextureId = "rbxassetid:/blabla"

Very simple script, I have been coding in LUA for a decent while but I haven't done this yet before, so it's new to me.

I have no idea how to do this, and the only other question with a decent answer that I found online didn't work.

Answer this question