Hey guys, currently making a custom function and the question is:

How to get the variable's NAME and not it's VALUE?

This might sound tricky but look - Let's say there is a variable called "NiceBoi" and inside would be string "Hey there!".

local NiceBoi = "Hey there!"

local AnotherOne = NiceBoi .. ' - NumberOne'
	
print(AnotherOne)

Now, I want "AnotherOne" not to be "Hey there! - NumberOne", but I want it to be "NiceBoi - NumberOne" - so as said, I want to get the variable's name.

I hope you got it, and thanks in advance as always!

2 comments

0

um why would u need to do that

0

No. You never need this. Please go to https://developer.roblox.com/learn-roblox/all-tutorials and get a better understanding of Lua before asking questions.