Im trying to make a sound play when the ingame time hits 6.
local Time = game.Lighting.ClockTime
local Chime = script.Parent.Sound
game.Lighting.Changed:Connect(function(property)
if property == "ClockTime" then
if Time == 6 then
Chime:Play()
end
end
end)
This is what I've got right now!

3 comments
Its still not working :| . The problem is from the If statement. I hope you can figure out whats wrong with this script!
What's your error? That'd prob be helpful to know lmao
I fixed it for you, it wasn't that hard since I forgot one thing. I don't know why you needed me to do that since it wasn't that complicated lol