In my game there is a restart button and I want the zombie waves to restart, This is my script the gui gets removed but I just need to restart the waves? Solutions?
elseif receiptInfo.ProductId == 978709606 then
local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
player.PlayerGui.GuiNameHere:Destroy()
-- This is where the script restart should be,

5 comments
This is why Lua should use the continue keyword;;
Thx so does this mean I cannot make the script restart through that way, nm I have though of another way
Feahren, continue exists in roblox lua...
continue wouldn't help here
Lord, all this time I thought it didn't support continue. This literally changes everything;) Although yes, it wouldn't necessarily help in this situation