How to Make a Laser Gun - Roblox Studio Tutorial

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

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

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

    Thank u so much! Now yhis will be my first poplaur game

  • @theway8389
    @theway8389 2 года назад +6

    YESSS
    YOU UPLOADED ITS BEEN SO LONG YAYAYYAYAYAYAYA YOU ROCK MAN (also thanks so much for this tutorial i was looking for one but none worked once again thanks bro) keep up the epic tutorials

  • @trendgamesroblox
    @trendgamesroblox 2 года назад +2

    This will be great for my game. My laser gun was killing my character so I changed the code for the tip in my model and rotated it then it worked. Thank you so much.

    • @cornerwedge2876
      @cornerwedge2876 2 года назад +1

      i added a part, made it completely tansparent, moved it to the end of the barrel and that worked too

  • @Megaplayercriss
    @Megaplayercriss 2 года назад +4

    nothing shows on the output when i click on both beginning scripts

  • @VeryProPlayerYesSir1122
    @VeryProPlayerYesSir1122 2 года назад +4

    i copied your code but i got killed by my own gun.

    • @ChristopherCro
      @ChristopherCro 2 года назад

      Yea because the gun doesn`t have owner verification

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

      Yep that happens

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

    Thank you so much! I was making a totally different gun, but it still worked perfectly! THNX! ♥

  • @tamarajacob7
    @tamarajacob7 2 года назад +1

    YOUR BACK!! Nice Tutorial! (Also, this is a little random but is there going to be more videos for the FPS game? I wasn't sure if the last video you made on it was the last one) (If not that's okay just wondering :)

  • @personontheinternet2010
    @personontheinternet2010 2 года назад +2

    This would work very well with a sci fi theme
    Thanks for the tutorial!

  • @tronne9969
    @tronne9969 2 года назад +1

    I knew this was gonna be a banger so I watched all the ads In this video

  • @captainpaco6364
    @captainpaco6364 2 года назад +2

    Verry helpful thanks!

  • @thegreenhoodieguy
    @thegreenhoodieguy 2 года назад +1

    I remember being subbed to you, don’t know why it was unsubbed

  • @TeenMc
    @TeenMc 3 месяца назад +1

    Can't believe it still works in 2024❤got a sub fr can you like make it show how much damage you sealed for my game?

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

      Is it only for R6?

  • @rorlund
    @rorlund 2 года назад +3

    Wowza

  • @juanc3383
    @juanc3383 2 года назад

    Hello, i love ur videos and this really helped me :)
    I have a suggestions: when a tool touches a part it gives u money

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

    Thanks a lot! Can you also tell me how to do a crosshair?

  • @keedahwright6988
    @keedahwright6988 2 года назад

    you know you can just get the mesh in the roblox library right

  • @Jamazie
    @Jamazie 2 года назад +1

    When I shoot a wall, my beam doesn't disappear, can anyone help?

  • @nisswani3327
    @nisswani3327 2 года назад +1

    hi Mike. how about the gun sound. because it was deleted before making new script. please explain how to set it on SoundId. thx.

  • @cookbouttacook9506
    @cookbouttacook9506 2 года назад +1

    The goat is back!!! 🥶

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

    How do i not kill myself with a the gun?
    I direct the mouse behind my person without using shift and I end up taking damage from the laser.

  • @mrtiny5029
    @mrtiny5029 2 года назад

    Amazing like always, It'd be interesting to see if you could recreate laser tag in Roblox. /With teams

  • @raymondli3240
    @raymondli3240 2 года назад

    Excellent, thanks Mike

  • @supremeking8969
    @supremeking8969 2 года назад

    ayy the legend returns

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

    It works like a dream! But when I shoot at the floor or a wall or something (basically anything that isn't humanoid) my script sends me to debugging. Is there any way to fix this or...

  • @joe8606
    @joe8606 2 месяца назад

    For some reason for the rays one ray was spelled with a capital and the other ones where lower case and it left a bunch of errors in my coding how do i fix this?

  • @AmaxLegend80
    @AmaxLegend80 2 года назад

    hi , please make more pygame tutorial , you are very good , thanks

  • @CaffeBoy
    @CaffeBoy 2 года назад

    Can you make a tutorial about when killing NPC like a zombie or some boss, then the player gets spawned to another game?

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

    Is there a 0.5 second delay for the laser

  • @fatherfigurepotato
    @fatherfigurepotato 2 года назад

    The Legend is back!

  • @Dogeloper505
    @Dogeloper505 2 года назад

    make a video teaching how to make a random killer picker pls

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

    Why does this line say that its wrong? Is the "Blacklist" Deprecated? "RaycastParms.FilterType = Enum.RaycastFilterType.Blacklist"

  • @hdr_8
    @hdr_8 2 года назад

    Can you make a system that respawns items every like 5 mins I need it for my game and this game I'm really defecated to but I need this system
    Ps I also need a system where the map clones itself so like you finish a round then you go back and it has the same map but it has everything started from the beginning thanks a lot of you do this

  • @kryptoncraftymax8275
    @kryptoncraftymax8275 2 года назад

    it worked but it doesn't kill the player and they just froze and get stuck on their death area

  • @Megaplayercriss
    @Megaplayercriss 2 года назад

    Its not showijng on output the clicked thing in the beginning

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

    there is a error at line 9 in the normal script

  • @vexor3018
    @vexor3018 2 года назад

    how do i make my game private but can be joined?

  • @froggo2675
    @froggo2675 2 года назад

    Can you make a group of blocks that spawn every x seconds? If you did that, can you tell me what video is?

  • @mariofan290_0
    @mariofan290_0 2 года назад

    i have been trying to make a tool that spawns in a model from replicated storage were ever you click your cursor at. and then the tools destroys itself once the model has spawned in the workspace in the area you clicked at, but i don't know how to do it. so i need some help.

  • @direwolf489
    @direwolf489 8 месяцев назад

    Anyone else have a problem where it can go through walls?

  • @Jaden-ml3fk
    @Jaden-ml3fk 2 года назад

    love the vids keep it up

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

    is it possible to make the gun fully automatic?

  • @LPLE_Official_Channel
    @LPLE_Official_Channel 2 года назад

    Make video how to make transport gear like carpet

  • @JharedPH
    @JharedPH 2 года назад

    Nice

  • @sloth-mode
    @sloth-mode 4 месяца назад

  • @void_batting9477
    @void_batting9477 2 года назад

    Attempt to index nil with Position

  • @gas4trev60
    @gas4trev60 2 года назад +1

    local gun = script.Parent
    local rs = game:GetService("ReplicatedStorage")
    local laserEvent = rs:WaitForChild("LaserEvent")

    gun.Equipped:Connect(function(mouse)
    mouse.Button1Down:connect(function()
    laserEvent:FireServer(gun, mouse.Hit.p, "Damage")
    end)
    end)
    my guns not printing when Click!

  • @mrchogus
    @mrchogus 2 года назад

    How do you add a (n) second cooldown to when you can hit something again

    • @timoaag
      @timoaag 2 года назад

      use debounce :)

  • @skyblox-eo5se
    @skyblox-eo5se 2 года назад

    Hey does the ray have a range??

  • @ugly.jumper
    @ugly.jumper 2 года назад

    do you have a discord??

  • @525830
    @525830 2 года назад

    were is your gun modle!

  • @aentix4959
    @aentix4959 2 года назад

    how to add a cooldown?

  • @ExxotikJimbo
    @ExxotikJimbo 2 года назад +3

    Hi

  • @coolkidmomoyayheyassassin424
    @coolkidmomoyayheyassassin424 2 года назад

    how can you know what you have to type on your things life or your future things

    • @TechwithMikeYT
      @TechwithMikeYT  2 года назад

      Huh?

    • @coolkidmomoyayheyassassin424
      @coolkidmomoyayheyassassin424 2 года назад

      @@TechwithMikeYT i mean about how we can learn ourself scipting

    • @coolkidmomoyayheyassassin424
      @coolkidmomoyayheyassassin424 2 года назад

      without a video

    • @TechwithMikeYT
      @TechwithMikeYT  2 года назад

      I don't think there is anything wrong with learning from a video. Coding is challenging so whatever way you learn best is fine. The more examples and practice you do the more you begin to see how you can modify something you have done before to make something new.

    • @coolkidmomoyayheyassassin424
      @coolkidmomoyayheyassassin424 2 года назад

      @@TechwithMikeYT anyways i wanna learn how to script
      :(

  • @赵亚风-u4r
    @赵亚风-u4r Год назад

    My line to is not right

  • @idkwhatamisupposedtoputhere
    @idkwhatamisupposedtoputhere 2 года назад

    got dislike , sorry but i didnt understand nothing in your vid , you better make a scripting tutorials or full serires because i dont have clue for what are you doing

    • @TechwithMikeYT
      @TechwithMikeYT  2 года назад

      What part did you get stuck on?

    • @idkwhatamisupposedtoputhere
      @idkwhatamisupposedtoputhere 2 года назад

      @@TechwithMikeYT Btw i sorry i was mean because i was mad and i didnt understand , any way i dont know what is after the function () inside the two thing after them i dont understand why i need to use them or how ?

  • @randomidea6436
    @randomidea6436 2 года назад

    can you make it where the bullets are not on the server but replicate it on from client to all client?

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

    raycastParms.FilterType = Enum.RaycastFilterType.Blacklist doesn't work for me, does anyone know why?