so im getting this error that 'part is not a valid member of part' but im trying to disable a script and I don't know what it could be because im disabling the script not part and the Part.Script is a child of FireFountain I cheaked
local FireFountain = {
F1 = script.Parent.FireFountain1,
F2 = script.Parent.FireFountain2,
F3 = script.Parent.FireFountain3,
F4 = script.Parent.FireFountain4,
F5 = script.Parent.FireFountain5,
F6 = script.Parent.FireFountain6
}
local function EmitterActivate (EmitterNumber, IsActive)
EmitterNumber.ParticleEmitter.Enabled = IsActive
if IsActive == true then
wait(0.1)
EmitterNumber.Part.Script.Disabled = false
EmitterNumber.FireBurningSoundEffect:Play()
else if IsActive == false then
EmitterNumber.FireBurningSoundEffect:Pause()
EmitterNumber.Part.Script.Disabled = true
end
end
end
while true do
EmitterActivate(FireFountain.F1, true)
EmitterActivate(FireFountain.F3, true)
EmitterActivate(FireFountain.F5, true)
EmitterActivate(FireFountain.F2, false)
EmitterActivate(FireFountain.F4, false)
EmitterActivate(FireFountain.F6, false)
wait(3)
EmitterActivate(FireFountain.F2, true)
EmitterActivate(FireFountain.F4, true)
EmitterActivate(FireFountain.F6, true)
EmitterActivate(FireFountain.F1, false)
EmitterActivate(FireFountain.F3, false)
EmitterActivate(FireFountain.F5, false)
wait(3)
end

4 comments
If it is saying that Part is not a valid member of Part then you are trying to reference a "Part" property of a Part...which does not exist. Try making line 14 be "EmitterNumber.Script.Disabled = false" Make sure you know what your hierarchy looks like when programming :) (that line of code I provided is contingent on you having the script inside the F# parts)
thanks also it wasnt even that script that was wrong it was the one that im disabling i put script.parent.Part gimme a few decades and maybe ill learn lol
now i would accept your anwser but it wont let me
Its a comment not an answer