when I switched it to ipairs, nothing changed, so this doesnt work
Did you try the script I provided?
I tested it and it sadly didnt change a thing
I think instead of showing us a small code block, why not make a separate place file for us to inspect and see the full picture of the bug, you don’t have to copy over the entire game, only elements that is required to reproduce the issue.
Try this. If it’s missing, make sure Archivable is turned on. If it’s not being enabled at all, assure that you are cloning the right object and/or it is actually a Script.
Hey guys…?
Can you look at this?
local all_scripts = {}
for _, scriptObject in ipairs(item:GetDescendants()) do
if scriptObject:isA("Script") then
table.insert(all_scripts,scriptObject)
end
end
for i , v in ipairs(all_scripts) do
v.Enabled = true
print(v.ClassName)
end
Is this a prank? Because, um…
Let’s just say it still doesnt enable the script for the conveyor.
Oh yeah, look at this too.
(This shows that it is disabled)
Ah. Do Disabled = false
instead of Enabled = true
.
Why don’t you use disabled instead like Script.Disabled = false
Here’s some information I found:
In a nutshell, I don’t think you can enable/disable scripts using other scripts.
Ok so I decided to rewatch the part of the youtube tutorial im watching and type everything how it was before the edits and somehow it works idk what the heck happened but I’m happy thank you all so much for the support
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.