i tried for awhile to get it working but it wont :(
local sp = script.Parent
local light = script.Parent.LightPart
while true do
workspace.GameData.Warn.Changed:Connect(function()
if workspace.GameData.Warn.Value == 1 then
light.SpotLight.Enabled = true
light.SpotLight2.Enabled = true
sp.Lamp.Sound:Play()
for i=1 ,math.huge do
light.CFrame = light.CFrame*CFrame.Angles(0, 0.01, 0)
wait(0.1)
end
else
light.SpotLight.Enabled = false
light.SpotLight2.Enabled = false
sp.Lamp.Sound:stop()
end
end)
wait(1)
end

4 comments
Are you using a normal script or localscript? Also a loop isn't needed in this case.
I'm using a normal script, it works fine but it won't stop spinning
I added the while loop to see if i could get it to update and check the value
wish i could accept both your answers all of you were so helpful