How to make a Target Lock On System - Roblox Studio 2023

Поделиться
HTML-код
  • Опубликовано: 29 авг 2024

Комментарии • 48

  • @thesnapdev
    @thesnapdev Год назад +3

    Nice video!
    Can you make a video about your dialogue system but make it work with functions? For example use it to open shops or accept quests through dialogues
    You’re awesome :)

  • @DesireOdun
    @DesireOdun 21 день назад

    Thank you so much!!!

  • @DesireOdun
    @DesireOdun 21 день назад

    amazing video

  • @jazzy_burrito
    @jazzy_burrito 9 месяцев назад

    Thanks man, you're an absolute life-saver! I wouldn't be able to make this well on my own, so the explanation of the code is really appreciated! Gonna learn a lot from you!

  • @melkerrrrr
    @melkerrrrr Год назад

    BIG CONGRATS ON 1000 SUBSCRIBERS 🎉🎉🎉

  • @jeffreylee7903
    @jeffreylee7903 5 месяцев назад

    Thanks for your sharing, have a nice day ^_^

  • @dinozenz
    @dinozenz Год назад

    You're amazing dude!!!

  • @bartoken
    @bartoken Год назад

    I just want to point out, at least in the roblox model linked in the description, an error appears the first time you try to lock on when there's no target. This only happens the first time, because when your first attempt to lock onto something is actually successful, no error appears. The error doesn't actually seem to break anything, but I just though I'd point it out. And the error is: "Players.playerusername.PlayerGui.CombatGui.Handler.Camera:278: attempt to index nil with 'Disconnect'"

  • @dannydonuts1915
    @dannydonuts1915 5 месяцев назад +2

    Hey thx do you know how i could add an icon to the lock on system so when i lock on and icon shows on the enemy pls

    • @JamariHenry-mj8kg
      @JamariHenry-mj8kg 5 месяцев назад +1

      Yes and also when using it on certain tools for eg a combat system when you get knockback you flies away

  • @syn1axx
    @syn1axx Год назад

    YAY U BACK

  • @quackeycakeys
    @quackeycakeys Год назад +1

    Hello , i've found that if you spam the key E a few times your camera will get stuck in lock on

    • @TeletacosRobloxTutorials
      @TeletacosRobloxTutorials  Год назад +2

      This could most likely be fixed by adding a simple debounce in the script, I apologize for the problem

  • @DesireOdun
    @DesireOdun 21 день назад

    is there a way to make it that when ur character runs sideways you look sideways while moving but lock on still works

  • @Tozukee
    @Tozukee 4 месяца назад

    thanks bro

  • @seylaphoeuk5438
    @seylaphoeuk5438 Месяц назад

    what could i swap out or add to make the camera focus on the space between the 2 players instead of the other player?

  • @FunCodeRoblox
    @FunCodeRoblox 6 месяцев назад

    Good tutorial

  • @ExscapingRxeality
    @ExscapingRxeality 22 дня назад

    yoo bro, you might not see this comment but is there a way to change the code to include a shake?

  • @melkerrrrr
    @melkerrrrr Год назад

    also for the next video, can you make a tutorial for a phone, i kinda need one for a project

  • @juargo9651
    @juargo9651 10 месяцев назад

    tysm

  • @lbye2310
    @lbye2310 Год назад

    For the dialogue system, it works perfectly in studio. However, the proximity prompt doesn't show up in game. Any ideas why this is happening?

  • @slmm.
    @slmm. Год назад

    Je t'aime

  • @rafixtop1
    @rafixtop1 Год назад

    would you record a video on how to make that a given player is killed by some player and that the admin can heal him under some command?

  • @akimboacid
    @akimboacid Год назад

    Hey teletacos, lately I've taken an interest into your Target Lock On script and while using it I noticed that once the target you locked onto dies then you have to press the lock on keybind a second time to deactivate it then press the keybind again to lock on to another target. I was wondering if you can take some time to help me figure out how to completely deactivate the lock on once the target dies without having to press the keybind again.

    • @Musashi444
      @Musashi444 7 месяцев назад +1

      don't know if you still need this but in case anyone in the future does:
      in "camera" module script
      on line 218
      after the line "local lineOfSight..."
      and before the line "if not lineOfSight then..."
      just throw in
      if target.Humanoid.health

  • @MatteoK-07
    @MatteoK-07 5 месяцев назад

    the gui doesn't spawn for me, is there a way to fix it?

  • @imanivia6572
    @imanivia6572 Год назад

    If my enemies humanoids are named something different like "EnemyHumanoid" what would I change to get it to work?

  • @duncedum
    @duncedum 5 месяцев назад

    is there a way to make it instant when you get close to a player?

  • @Icy2018
    @Icy2018 6 месяцев назад

    How do i make it so it happens automatically when near a humanoid?

  • @MEGY4_BrawlStars
    @MEGY4_BrawlStars 4 месяца назад

    does it work on players?

  • @Penguin_Youtube925
    @Penguin_Youtube925 6 месяцев назад

    where do i put the lock on gui

  • @siranyapoonsawat7806
    @siranyapoonsawat7806 Год назад

    can you make moblie support?

  • @Whhatt
    @Whhatt 5 месяцев назад

    Does this work on top down camera

    • @Whhatt
      @Whhatt 5 месяцев назад

      Yes it does but my camera shakes for some reason

  • @theonehowasket3719
    @theonehowasket3719 Год назад

    Wen i use it it just placed me in to the ground 😢

  • @rion9931
    @rion9931 3 месяца назад

    How does targeting NPCs work since they don't have a HumanoidRootPart?

    • @lowrhyan567
      @lowrhyan567 3 месяца назад

      Add a HumanoidRootPart to them.

    • @rion9931
      @rion9931 3 месяца назад

      @@lowrhyan567 I tried, it still won't lock onto them unless I import a rig with a humanoid root part already in there

  • @LucZRoblox
    @LucZRoblox Год назад

    works on mobile?

  • @commandblockgal7396
    @commandblockgal7396 11 месяцев назад

    dark souls

  • @melkerrrrr
    @melkerrrrr Год назад

    9 MORE SUBS UNTIL 1K

  • @warckloks1239
    @warckloks1239 6 месяцев назад

    Didnt work, tried on r6 and r15 dummies

    • @coolbybys
      @coolbybys 5 месяцев назад

      make sure it has a humanoidrootpart

    • @rion9931
      @rion9931 3 месяца назад

      @@coolbybys Even if you give the dummy a humanoidrootpart it still doesn't lock on to them. Only players

  • @juanangelgaelgastelum-nava366
    @juanangelgaelgastelum-nava366 8 месяцев назад

    my brain broke trying to understand the code lol

  • @somedudenameddawn5331
    @somedudenameddawn5331 Год назад

    Bro thanks i had no idea how this would work, i saw an issue though when i ran the lock on, my character phases into the floor, any fixes for this? @TeletacosRobloxTutorials

    • @TeletacosRobloxTutorials
      @TeletacosRobloxTutorials  Год назад

      Hello one fix for this could be replacing the line 260, which is the PivotTo, to instead be character.HumanoidRootPart.Cframe = newCframe