Script:
local m = game.Players.LocalPlayer.leaderstats.Experience.Value
while true do
script.Parent:Clone().Parent = script.Parent.Parent
wait(3)
if m >= 5 then
script:Destroy()
end
end
The :Destroy() thing doesn't work, so how do I stop it when m is greater or equal than 5. It would be nice if you would give me the code with your answer if you have one.

2 comments
I don't know if it works or not, in the output it keeps saying, "11:02:51.792 - startScript re-entrancy has exceeded 3"
https://scriptinghelpers.org/questions/28059/startscript-re-entrancy-has-exceeded-3 try reading here. Others get the same error, and is has to do with the Cloning.