ENT:Use Help

Here’s the Code http://codepad.org/17zap4Ke

I’m trying to get ENT:Use to work and it doesn’t seem to work at all. Am I using it the right way? I checked out the Sent_Ball and I was using it in the same way it had.

This is Lua, not C.
if not (tr.Hit ) then return end

[editline]19th June 2012[/editline]

Dude… Did you not read your error?

line 12: unexpected symbol near ‘!’

I mean… come on.

That’s how it was used on the Garry’s Mod Wiki. http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index75e6.html

that error does not turn up in Garry’s Mod.

Nothing to do with ENT:Use.

Then why is it posted at the bottom of your pastebin? :pwn:

[editline]20th June 2012[/editline]

Doesn’t matter. If you fuck up the syntax to the point of where it cant compile, then ***nothing ***will work.

Everything Spawns but nothing happens when I do +Use on it.