I have a variable that gets changed to a new part and when I switch to the next part it doesn’t run changed again.
I know the answer is obvious but I just can’t think straight i’ve tried adding repeats and whatnot but it never worked or if it did it counted to 63k in less than a second and then the script quit
part = script.Parent
part.connected.Changed:Connect(function()
print"connect"
local part = script.Parent
if part.connected.Value ~= nil then
print(count)
part.connected.Value.Name = "work"
part = part.connected.Value.Parent.Connector
part.Mesh:Destroy()
end
end)