-- Better don't change anything. This script is WIP v.0.2
-- This screen gui doesn't work if your game has day and night loop


game:GetService("RunService").RenderStepped:Connect(function()
if (Rake.Position - Character.HumanoidRootPart.Position).magnitude<70 and Debounce1 == false then
Debounce1 = true
NightTheme:Pause()
Found:Play()
FlashEffect.BackgroundTransparency = 0.6
wait(0.4)
ScreenShake.Disabled = false
FlashEffect.BackgroundTransparency = 1
RakeTheme:Play()
end
if (Rake.Position - Character.HumanoidRootPart.Position).magnitude>70 and Debounce1 == true then
Debounce1 = false
NightTheme:Play()
ScreenShake.Disabled = true
FlashEffect.BackgroundTransparency = 1
RakeTheme:Stop()
end
end)
