Hi! This is my first post however. I’m trying to get the local name or such as “variables” name. I tried to work around with this with many ways as possible, but I just don’t know how to do it right or… I just don’t know how to do it.
I tried to look through the dev forum and asking on other coding group and mostly I can’t find what am looking for.
I want to get the local name to be as some instance’s value through the code. Here a few ways I think to make this work: Make a script that auto do it or a script that scan through the code and change the part name by it. I don’t know what to explain more so I hope we can help me know how to do this.
What I’m trying to do here is pretty hard to explain. Here an example code and how what I would like it to look like
local TemporaryIceSpike = Instance.new("Part")
TemporaryIceSpike.name = "TemporaryIceSpike"
--So instead of doing that manually for many parts is there anyways that I can make a script that automatically do the progress?
local TemporaryIceSpike = Instance.new("Part")
local ClonedIceSpike = TemporaryIceSpike:Clone()
--Some script that will automatically rename the part that got created with it local name
The thing is I wanted to change the part name through local name.
I’m trying to make an automatically progress that will change every instance name to it local name. So that it easier for me to check the error and what disturb the code.