num = 4
script.Parent'part'..num.BrickColor
basically i want it to go to script.Parent.Part4
num = 4
script.Parent'part'..num.BrickColor
basically i want it to go to script.Parent.Part4
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.
1 comment
Use script.Parent."Part"..num ?idk