Same result unfortunately, this is tricky
Normally this isn’t the cause of the issue. Instances are referenced within the table. The object itself is still existing, no matter whether or not Destroy
was used on it, or if streaming did its thing. Garbage collection could not delete the object properly as a reference exists in the descendence list, so changing the name is normally still possible
Try this:
local SelectAlarm = game.Workspace:GetDescendants()
local Pins = script.Parent.Parent.Parent.Selector
local Reset = Pins:GetChildren()
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
for i, v in pairs(SelectAlarm) do
if v.Name == player.Name.."MT" then
local EE = v.Tones.DontTouchThis
local SV = v.Tones.SteadyHorn
v.Horn.horn.SoundId = SV.Value
v.Horn.horn.Volume = EE.Value
v.Tones.Update.Value = "steady"
end
end
end)
You should also break the loop after finding the model so it doesn’t continue looping through objects even after finding the model.
1 Like