Well, I’m pretty new to lua coding, and I need some help. Here’s the code I’m working on:
(Yes, it’s a aimbot. Big deal).
1). How would I replace the “player.GetByID(1)” so it’s me all the time, not just when I’m the first player. I’ve tried LocalPlayer instead of the ply(LocalPlayer:GetShootPos etc.)
2). How would I get the vector X and Y of the BoneIndx? I’ve tried GetBonePosition(BoneIndx.x), GetBonePosition(BoneIndx).x, etc. Right now it just points me to the origin of the map.
Oh yeah, I just copied the util.QuickTrace line from the wiki. I have no idea how it works.