Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function fire(entity)
- local x, y, z = entity.x, entity.y, entity.z
- local pitch = -math.atan2(y, math.sqrt(x * x + z * z))
- local yaw = math.atan2(-x, z)
- modules.fire(math.deg(yaw), math.deg(pitch), 5)
- sleep(0.2)
- end
Advertisement
Add Comment
Please, Sign In to add comment