Results 1 to 12 of 12
  1. #1
    ThatBenderGuy's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    Tucson, AZ
    Posts
    60
    Reputation
    10
    Thanks
    7
    My Mood
    Sleepy

    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

    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.

  2. #2
    D3M0L1T10N's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    1,364
    Reputation
    19
    Thanks
    656
    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]

  3. #3
    ThatBenderGuy's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    Tucson, AZ
    Posts
    60
    Reputation
    10
    Thanks
    7
    My Mood
    Sleepy
    Doesn't work for me, what bypasser are you injecting? I'm using gmodpickles.dll

  4. #4
    ehex's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    150
    Reputation
    22
    Thanks
    555
    This wont work clientside im p sure. Also make sure allowcslua is on.

  5. #5
    ThatBenderGuy's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    Tucson, AZ
    Posts
    60
    Reputation
    10
    Thanks
    7
    My Mood
    Sleepy
    Quote Originally Posted by ehex View Post
    This wont work clientside im p sure. Also make sure allowcslua is on.
    it is but i think you're right that it doesn't work clientside at all lol

  6. #6
    ehex's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    150
    Reputation
    22
    Thanks
    555
    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"

  7. #7
    Kellyseveride's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Location
    Valve Inc
    Posts
    192
    Reputation
    10
    Thanks
    94
    My Mood
    Angry
    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

  8. #8
    Gray's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    Sweden
    Posts
    13,557
    Reputation
    2516
    Thanks
    10,618
    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.

  9. #9
    D3M0L1T10N's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    1,364
    Reputation
    19
    Thanks
    656
    Quote Originally Posted by Antipathy View Post
    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.
    what? no seriously lol
    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]

  10. The Following 2 Users Say Thank You to D3M0L1T10N For This Useful Post:

    usercmd (02-23-2014),Zombeezz (02-18-2014)

  11. #10
    ThatBenderGuy's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    Tucson, AZ
    Posts
    60
    Reputation
    10
    Thanks
    7
    My Mood
    Sleepy
    Quote Originally Posted by Kellyseveride View Post
    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
    Will a speed hack allow me to pass through walls? Because that's what i'm trying to accomplish xD
    Last edited by ThatBenderGuy; 02-22-2014 at 01:43 AM.

  12. #11
    Kellyseveride's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Location
    Valve Inc
    Posts
    192
    Reputation
    10
    Thanks
    94
    My Mood
    Angry
    Quote Originally Posted by ThatBenderGuy View Post
    Will a speed hack allow me to pass through walls? Because that's what i'm trying to accomplish xD
    Why don't you just code a 180 script that spawns a prop and phases through stuff. This isn't possible, use a spectator/ghost hack and fly through shit. But you can't physically teleport there when your done. I can't see this being done.

  13. #12
    snipwnage3's Avatar
    Join Date
    Jul 2015
    Gender
    female
    Posts
    75
    Reputation
    10
    Thanks
    84
    Code is broken???

Similar Threads

  1. [Help Request] Teleport all script?
    By DRandrix in forum DayZ Help & Requests
    Replies: 9
    Last Post: 03-28-2013, 09:30 PM
  2. [Release] ESP, MARKERS and TELEPORT in1 Script.
    By gnasher65 in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 4
    Last Post: 12-10-2012, 01:30 PM
  3. can somone get me a teleport vehicle script
    By samplebridge in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 1
    Last Post: 11-25-2012, 04:54 AM
  4. Teleport script :) need someone to help adjust
    By aboyd1991 in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 13
    Last Post: 09-03-2012, 03:08 AM
  5. [Release] Teleport with Script Executor, inc. Edited teleport script
    By bowen2k12 in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 4
    Last Post: 08-31-2012, 07:58 AM