• why is this simple code crashing me
    3 replies, posted
function ENT:Think() self.ok = self.ok + 1 if self.ok > 255 then self.Entity:Remove() end end Yeah why is that crashing me..., before it was giving me freaking microsoft runtime errors to
Use a timer instead of a think hook
I put that in init.lua instead of shared.lua and it stopped crashing so.. yay
It was probably because you were running ent:Remove() on the client
Sorry, you need to Log In to post a reply to this thread.