alright so in my game this is my levelup handler which when someone levels up it is supposed to clone a gui into their PlayerGui which it does fine the first time but after they level up again nothing, i have no idea why it would just quit after one clone
script:
game.Players.PlayerAdded:Connect(function(player) local requirements = player:WaitForChild("Requirements") local levelrequirement = requirements.RequiredKills local leaderstats = player.leaderstats local kills = leaderstats.Kills local level = leaderstats.Level local levelupgui = game.ServerStorage.LevelUp:Clone() kills.Changed:Connect(function() if kills.Value >= levelrequirement.Value then print(player.Name.." Leveled Up") level.Value = level.Value + 1 levelupgui.Parent = player.PlayerGui wait(5) levelupgui:Destroy() if level.Value >= 5 then levelrequirement.Value = levelrequirement.Value + 20 else levelrequirement.Value = levelrequirement.Value + 15 end end end) end)
Im not sure if you resolved this but try by changing 'levelupgui:Destroy()' to 'levelupgui:Remove()' once again you probably resolved this anyway