past it in the singleplayer enviroment
I am trying to create a script similar to a lot of prop hunts' unstuck script where it teleports your forward a bit. But I can't seem to find a decent tutorial anywhere on player scripting in lua. Could I get some help on the subject?
This is my current script
Code:local TeleHack = {} TeleHack.Version = "0.1.0" TeleHack.Ply = LocalPlayer() TeleHack.KeyPressed = function(key) local trace = LocalPlayer:GetEyeTraceNoCursor(); if key == 34 then //34 = X key Ply:SetPos(trace.HitPos + trace.HitNormal * 32); print( "returned true" ) return true end print( "returned false" ) return false end
but i'm not even getting the prints in the console
Last edited by Hunter; 01-18-2016 at 03:11 PM.
past it in the singleplayer enviroment
8:53 PM - Xenomorphic 1 hr 7 min cooldown: So is MPGH only exist so people can c+p from ************* and troll the gmod section?
[IMG]https://i739.photobucke*****m/albums/xx38/jorroa5990/flatexch2_zpsec96a7e2.gif[/IMG]
Doesn't work for me, what bypasser are you injecting? I'm using gmodpickles.dll
This wont work clientside im p sure. Also make sure allowcslua is on.
Yea, of course it wont work clientside. Its meant to teleport your player. It would work in a spectator script of some sort, But never clientside to just "teleport"
I don't even see the point in this unless your teleporting like across map. Not fkn 4 ft infront of you. Use a speed hack
He could teleport through walls if he pulled it off.
I'm sure that the server holds all your location data and that the only thing you could control would be pitch, yaw and direction. Anything done with the cursor that is.