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

How do i put quotation marks into path?

num = 4

script.Parent'part'..num.BrickColor

basically i want it to go to script.Parent.Part4

1 comment

0

Use script.Parent."Part"..num ?idk

1 answer

✓ Accepted answer

The code you sent doesn't do anything so I will give a similar example of how you'd do what you're trying to do:

local num = 4

workspace["Part" .. num].BrickColor = BrickColor.Green()

This will change workspace.Part4's color to green.

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