I'm really dumb, and got it working, but i hope this is the last thing: for some reason, i have this script:
Code:
for actor in MovableMan.Actors do
local diff = math.sqrt(math.pow((actor.Pos.X-self.Pos.X),2) + math.pow((actor.Pos.Y - self.Pos.Y),2))
local diffx = self.Pos.X - actor.Pos.X;
local diffy = self.Pos.Y - actor.Pos.Y;
local ang = math.atan2(diffy,diffx);
if (diff < 100) then
self.timer2 = Timer();
if self.timer2:IsPastRealMS(300) then
blah blah
self.timer2:Reset();
end
end
end
For some reason, the blah blah is not working
(I know nothing is wrong with it) I don't know if this is my fault or what, but it is running on an ACDropship.
Edit: Don't worry about tabbing.
Edit2: I tried even printing when it happened, and it still won't work