Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local InkTb = CreateClientConVar("Ink_Trigger" , "0" , true , false)
- function Trigger()
- local Eye = LocalPlayer():GetEyeTrace().Entity
- if InkTb:GetBool() then
- if (Eye:IsNPC() or Eye:IsPlayer()) then
- RunConsoleCommand("+Attack")
- else
- timer.Simple(0.50, function()
- RunConsoleCommand("-Attack")
- end)
- end
- end
- end
- hook.Add("Tick", "Test", Trigger)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement