Basically what I want is to get the Name of the IntValue if it's changed. For some weird reason the Changed event for a Value only works for its Value property, so you can't tell if its Parent or Name has changed.
Better Example:
local thing = Instance.new("IntValue", workspace) thing.Changed:connect(function(property) print(property) end) wait(1) thing.Name = "Fish" -- doesn't print anything thing.Value = 8 -- prints 8 because it's the value
local thing = workspace:WaitForChild("IntValue") thing.Changed:connect(function(value) print("changed") end) thing.Name = "Eh" -- This will change the IntValue's name, it will not print in output.
The one you want The one your using You need to change if you want it do when a propert is changed Your question is a bit confusing, maybe add some more detail, like do you want the IntValue's name to change Eh if the value has been changed?
If this helped please accept and rate up, but if this dosen't work, they don't hate, just ask and I can help with more details.
- NinjoOnline
.Changed certainly does work with changing the name of objects. My guess is that your issue lies here:
local thing = workspace:WaitForChild("IntValue")
Are you sure there is a value directly in the workspace named "IntValue", and it's not grouped with any models? Your code will wait until there is an object named IntValue directly in the workspace, and won't continue until it finds it. If it's never added, that code is going to loop there forever and ever. The rest of the code works 100% fine -- just make sure there is an object in the workspace (directly in it -- not grouped with any models) named "IntValue".