#Script not working, again
7 messages · Page 1 of 1 (latest)
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
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
what about the thing with the sound playing when its 6-7am