How to give a variable a "tag"

local con[v] = v.ClickDetector.MouseClick:Connect(function()
				
			end)

Basically I want a way to identify the rbx signal. This would be easy if it were a string I would just do con..v but I need it to be a variable name. Any ideas would be greatful! I know briefly about tag service but I am not skillful enough in it to use it thats why im looking for something more simple.

Since I don’t completely understand what you mean, I’ll assume that you want a dictionary with connections.

local connections = {}

connections["MouseClick"] = v.ClickDetector.MouseClick:Connect(function()

end)

print(connections["MouseClick"]) --> connection

It’s basically just like you would index other things.
Make a key and add a value.

1 Like