Yummy head cones!

I need help making a LUA script that spawns a traffic cone and binds it to a user’s head bone or whatever, so if they look up and down it stays on the head and looks like they’re wearing it.

FloodMod had a script like this for awhile but I haven’t been able to find the code what does it. D:

Thanks guys. <3