Code is not working

hello! I am making a script that finds a parts name through a value. and then is suppose to add onto the name. For example. I find a part called Part, then I want to add a number to the name, however this code seems to not work. can someone help me out?

script.Parent.CurrentFrame.Value = 1
script.Parent.Frame..script.Parent.CurrentFrame.Value.Disabled = true -- don't mind the disabled. I was just testing with it

The 2nd line only sets a variable.
If you want to set a name, you would append to the string, like so:
script.Parent.Frame.Name..=tostring(script.Parent.CurrentFrame.Value.Disabled)

1 Like