Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Fire is not enabling in a script?

Hello, I was just wondering on why this fire enable script is not working.

Please may you take a look?

	local children = workspace.Mainframe_Status_Fire_Parts:GetChildren()
		for i = 1, #children do
    	i, children[i].Fire.Enabled = true

This is how my module is set out:

Workspace
	Mainframe_Status_Fire_Parts
		One
			Fire
		Two
			Fire
		Three
			Fire
		Four
			Fire
		Five
			Fire
		Six
			Fire
		Seven
			Fire
		Eight
			Fire
		Nine
			Fire

4 comments

0

You really need to consider learning how to code in Lua.

0

Thank you for your help..

0

There are so many syntax errors in your code, I don't know where to begin where I would be able to HELP you.

0

Help then please>

1 answer

✓ Accepted answer

You're close. You just forgot an end, and you don't need the extra i on line 3.

local children = workspace.Mainframe_Status_Fire_Parts:GetChildren()
for i = 1, #children do
	children[i].Fire.Enabled = true
end

1 comment

0

Thank you! Haha silly mistake of mine :p

This discussion is preserved as it was. New answers, comments, and votes are closed.