How to point to a path with a variable

how to point to a path with a variable.

local NameSignal = script.Parent.Parent.Name
local Signal = game.Workspace.**NameSignal**

You would use brackets.

local Signal = game.Workspace[NameSignal]

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.