Hi there,
I'm making a game called Crumble Runner, and I'm making a system of how long they survive. At the end of the round, the longer they survive the more points they get. It's a Script in StarterPack. However, when the round ends the points don't seem to be added for some reason. Can someone help me?
Code:
local gameIsPlaying = game.ServerStorage.ValueStorage.GameIsPlaying local player = script.Parent.Parent local timer = 0 player.InGame.Changed:connect(function() if player.InGame.Value == true then wait(3) repeat wait(1) timer = timer + 1 until player.InGame.Value == false or timer == 80 repeat wait() until gameIsPlaying.Value == false player.Points.Value = player.Points.Value + timer timer = 0 end end)
I'd really appreciate it if someone could help me with this.
Thanks, PickUpTheBeat1.