game:GetService("Players").PlayerAdded:Connect(function(plr)
local remote = game:GetService("ReplicatedStorage").BE
task.wait(3)
for i,v in pairs(plr:FindFirstChildWhichIsA("Folder"):GetChildren()) do
v.Changed:Connect(function()
remote:Fire(v.Name .. ": value has been changed to [" .. tostring(v.Value) .. "]")
end)
end
end)
-- in the script where you want to detect and fire changes
for _,v in pairs(folder:GetChildren()) do
if v:IsA("BoolValue") then
v:GetPropertyChangedSignal("Value"):Connect(function()
bindableEvent:Fire()
end)
end
end
-- in another script
bindableEvent.Event:Connect(function()
print("a boolvalue changed")
end)
-- pass the v in the loop with fire() if you want to get what boolvalue changed
Hi a19_9, I haven’t managed to get it to work, I think there’s something wrong with my scripts. Thank you for this, I’m sure it does work, I just need to change a few things. If I could mark 2 replies as a solution, I would. Sorry, Cloud_Emmie replied earlier so I think it’s fair that I give them the solution but thank you so much for your help!