script.Parent.Humanoid.Died:Connect(function()
if game.Players.LocalPlayer.PlayerGui.Quest.After.Visible == true then
game.StarterPlayer.clevel.Value = game.StarterPlayer.clevel.Value + 1
end
end)
i made when npc died and frame visible then the int value + 1
This is the script this is a local script there is no errors
clevel is the int value after is the frame
but not works

3 comments
its worked with your way but its not repeating i am saying if now i kill the npc the value will be +1 but if i do it again not working why
and i add while wait(1) but it gives a random number not + 1 why
hi i do copy and paste your script but it still gives an random number not +1 why???