Heres the repeated code
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
addhook("triggerentity","actions") function actions(x,y) 	i=0 	var1=entity(x,y,"name") 	var2=string.sub(var1, -3,-1) 	var2=0 	while i<#var1 do 		print(i) 		i=i+1 	end end
This is probably just an oversight on my part but i can't work out what it is.