Jump to content
  • 0

I cant open my script!!! Error function Main()


maYck_

Question

Hello i new with scripts and i cant open my script withot the end on  "function Main()" this is my script

function Main()
  
menu=gg.choice ({"TOASTTEST","2MenuChoicesTEST"}
end

if menu==1 then
gg.toast ("WORKS")
end

if menu==2 then
aMenu=gg.choice({"EXIT","ALERT"})
end

if aMenu==1 then
Main()
end

if aMenu==2 then
gg.alert('WORKS TOO')
end

How i solve this problem? Sorry my bad english

TESTES.lua

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.