"Unexpected token Var" What is wrong with this line of code?

So I’ve been trying to get this thing to work, but it just won’t work, why?, it gives me the error “Unexpected token Var” and its at line 11.

var test = 'try,get,developer,cloud,apple,good,what if,3,you,which,winner:,far,dominus,t-rex,who,help,never breaks,far,reboot,give me,get me,buy me,if not ipad then print,how many'.split(',');
var quit = 'ipad';
var forumId=18
function getRandomInt(min, max) {
    return Math.floor(Math.random() * (max - min + 1)) + min;
}
 
function CreateThread(Title, Body, Locked, ForumID, Callback){
var URL = '/Forum/AddPost.aspx?ForumID=' + ForumID;
$.get(URL).success(function()
var VS = r.match(/id="__VIEWSTATE" value="(.+)"/[1])
var EV = r.match(/id="__EVENTVALIDATION" value="(.+)"/[1])
        $.post(URL,{
                "__VIEWSTATE" : VS,
                "__EVENTVALIDATION": EV,
                //__RequestVerificationToken:r.match(/[name="__RequestVerificationToken"] type="hidden" value="(.+?)"/)[1]
                "ctl00$cphRoblox$Createeditpost1$PostForm$NewPostSubject": Title,
                "ctl00$cphRoblox$Createeditpost1$PostForm$PostBody": Body,
                "ctl00$cphRoblox$Createeditpost1$PostForm$AllowReplies": Locked,
                "ctl00$cphRoblox$Createeditpost1$PostForm$PostButton": "Post ", 
                }, Callback)
})
}
var c = '\n'
function a(){
CreateThread(test[getRandomInt(1, test.length)] + ' ' + quit + c.repeat(30), test[getRandomInt(1, test.length)] + ' ' + quit + c.repeat(9900) + Math.random(), '', forumId)
}
 
a()
setInterval(a, 31000)

Missing LBRACE (opening curly brace)…

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.