#Script not working, again

7 messages · Page 1 of 1 (latest)

forest tangle
#

what is ment to stop? @short furnace

short furnace
# forest tangle what is ment to stop? <@956592902040092803>

oh im sorry its not what i meant to send

local alarmSound = workspace.zegar.alarm
local clickDetector = workspace.guzior.ClickDetector

function onMouseClick()
   alarmSound:Stop()
end

clickDetector.MouseClick:Connect(onMouseClick)

this
its supposed to stop a sound but it doesnt work
theres also this

local alarmSound = workspace.zegar.alarm

    while true do
    if game.Lighting.ClockTime >= 6 and game.Lighting.ClockTime < 7 then
        alarmSound:Play()
    else
        alarmSound:Stop()
    end
    wait(1)
end

this one works, but maybe it causes the other one to not work, idk

visual mist
#

This may work

local alarmSound = workspace:WaitForChild("zegar"):WaitForChild("alarm")
local clickDetector = workspace:WaitForChild("guzior"):WaitForChild("ClickDetector")

function onMouseClick()
    alarmSound:Stop()
end

clickDetector.MouseClick:Connect(onMouseClick)```
#

@short furnace

short furnace
#

what about the thing with the sound playing when its 6-7am

visual mist
#

wait

#
local alarmSound = workspace:WaitForChild("zegar"):WaitForChild("alarm")  

    while true do
    if game.Lighting.ClockTime >= 6 and game.Lighting.ClockTime < 7 then
        alarmSound:Play()
    else
        alarmSound:Stop()
    end
    wait(1)
end```