Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GetOurAttachment(ply) // Create a selfmade function, that takes 1 argument.
- local ID = ply:LookupAttachment("eyes") // this will return a number corresponding with the given attachment.
- return ply:GetAttachment( ID ) // this will return a small table, see GetAttachment for more information.
- end // end our function.
- function GetHeadPos() // create yet another function.
- LocalPlayer():ChatPrint("The position of your own head is: "..tostring(GetOurAttachment(LocalPlayer()).Pos).."!") // call our earlier function, and get the position from it so we can display it in our chat.
- end // and end this one as well.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement