Hey guys, I am trying to get this script working but there is something wrong with this function. "unexpected symbol near 'if'.
function Saronex.Shadow_Word_Death(eventid, delay, repeats, pUnit)
local targets = pUnit:GetPlayersInRange()
local RT = targets[math.random(1, #targets)]...