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

0

This is why Lua should use the continue keyword;;

0

Thx so does this mean I cannot make the script restart through that way, nm I have though of another way

0

Feahren, continue exists in roblox lua...

0

continue wouldn't help here

0

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