It's been a long time since I've messed around much with Lua code and I am having some trouble with it as a result. Could someone tell me why my code doesn't function? I believe it's supposed to send a toast when a day passes in a sandbox gamemode, but it doesn't seem to work.
Code: Select all
function script.nextDay ()
if isSandbox () == true then
Debug.toast ("test")
end
end