Teleport forward script?
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
but i'm not even getting the prints in the console
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
