I know the title is really confusing so im going to explain more here.
Basically every “Bomb” has a value named “isDefused”. But I don’t know how to define it
Feel free to ask any questions
I know the title is really confusing so im going to explain more here.
Basically every “Bomb” has a value named “isDefused”. But I don’t know how to define it
Feel free to ask any questions
:GetChildren()
does not take arguments. Are you trying to get every bomb?
for _, bomb in next, script.Parent:GetChildren() do
if bomb.Name == "Bomb" then
local val = bomb.isDefused;
val.Changed:Connect(function()
--do something
end)
end
end
for _, bomb in pairs(script.Parent:GetChildren()) do
In case the thread’s poster wants to stick w/ using the pairs() iterator.