My current script that does not work
repeat wait() until game:GetService("Players").LocalPlayer
local Character = workspace:FindFirstChild(game.Players.LocalPlayer.Name)
while wait() do
if Character:FindFirstChild("Humanoid") then
if Character.Humanoid.Health.Value <= 0 then
game.Workspace.Medium.MusicCrazy:Stop()
end
end
end

1 comment
You should refrain from using a while wait() loop, that's asking for a memory spike. Something like 'while wait(0.45) do' would work here.