Heres the script:
while true do wait(0.1) if game.ReplicatedStorage.GameValues.HomeScore.Value ~= game.ReplicatedStorage.GameValues.AwayScore.Value and game.ServerStorage.ClockValues.per.Value == '3rd' or game.ServerStorage.ClockValues.per.Value == 'OT' then game.Workspace.ResetTime:Remove() local m = Instance.new("Message") m.Parent = workspace m.Text = 'Game Over! Chat start to setup a new game!' wait(5) m:Remove() game.ReplicatedStorage.GameRunning.IsGameRunning.Value = false end end
On line 3 at the end of the code you did not put an integer value so roblox probably assumes it's 0
if game.ReplicatedStorage.GameValues.HomeScore.Value ~= -- The value that the script will function for