Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Now there's another problem [closed]

Asked by 10 years ago
val = script.Parent.Parent.Parent.Parent.AudibleCircuit
val2 = script.Parent.Parent.Parent.Parent.VisualCircuit

horn = script.Parent.Parent.Horn
strobe = script.Parent.Parent.Strobe
candela = 1
hornpitch = math.random(1690,1755)/100
horn.Pitch = hornpitch

if candela == 0 then -- 15
    strobe.Flasher.Size = UDim2.new(1.5,0,1.5,0)
elseif candela == 1 then -- 75
    strobe.Flasher.Size = UDim2.new(3.5,0,3.5,0)    
elseif candela == 2 then -- 110
    strobe.Flasher.Size = UDim2.new(4.5,0,4.5,0)    
end

function Flash()
strobe.BrickColor = BrickColor.new(1001)
strobe.Flasher.Strobe.Visible = true
wait(0.05)
strobe.BrickColor = BrickColor.new(194)
strobe.Flasher.Strobe.Visible = false
end

function Tick()
if val2.Value == 1 then
    tick:Play()
else
    tick:Stop()
    end
end

function Sound()
if val.Value == 1 then
    horn:Play()
else
    horn:Stop()
end
end

val.Changed:connect(Sound)

function Visual()
    if val2.Value == 1 then
        Flash()
    end
end

val2.Changed:connect(Visual)

It says this now after put the "." in:

19:09:09.840 - Pitch is not a valid member of Part 19:09:09.841 - Script 'Workspace.RFT2 Fire Alarm System.Signal1.Signals.RFS 520-EM', Line 10 19:09:09.842 - stack end

Closed as Not Constructive by evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?