How to move player

Hi. Im making weapon and i would like to make it so it would allow move players like physgun. Is it possible to do it, if is can someone tell me?

Thanks

I think this may help you

[editline]7th May 2016[/editline]

It looks pretty complicated but wouldn’t be too hard to modify into SWEP code

Thanks will look into it!

[editline]7th May 2016[/editline]

Well didnt work like wanted but its ok i think i had better idea, i want to make player levitate when being attacked and drop when attack stops :slight_smile:

thing is i have no clue how to do it xD

ply:SetVelocity() or RunConsoleCommand("+moveleft")

Thanks