Why Don't this work?


Im pritty much an newbie on lua, but trying do so noclip dont work in world/walls/ground

made this so far

if Player.IsWorld ( ply ) then
	ply:SetPos( ply:GetPos() + ( ply:GetVelocity():GetNormal() * -100 ) )
	ply:SetMoveType( MOVETYPE_WALK )

I might be close to success or total failure :stuck_out_tongue:

Please Help!

That isn’t a great way of doing it but have you put it in a think hook?


Also, Player.IsWorld?

That either doesn’t exist or it isn’t what you think it is.

added no hooks so far

Is there any ent/code that detect if player is in world/wall/ground?

I though player.inworld was that kinda thing, guess i was wrong.

shouldnt it be “Player.IsInWorld” instaed?
coz not anybody can be the world.