How to Kill a Player by Clicking Them (Part 2) - Roblox Studio Tutorial

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • In this video we continue the last click to kill video by adding kill tracking and distance control in Roblox Studio! Whenever you click a player you get a kill that is stored in the leaderboards. In addition to keeping track of kills we also set up limits on how far you can click a player. This helps to prevent players from clicking across the map.
    Link to Script:
    www.mrmichaels...

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

  • @memeboi7842
    @memeboi7842 3 года назад +3

    PIN THIS MIKE

    • @TechwithMikeYT
      @TechwithMikeYT  3 года назад +4

      You've been pinned!

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

      @@TechwithMikeYT TYSM

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

      @@TechwithMikeYT sorry I was late

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

      @@TechwithMikeYT I was eating

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

      @@TechwithMikeYT can i just get a normal kill player? No click

  • @personontheinternet2010
    @personontheinternet2010 3 года назад +1

    Thanks dude, you alwags make your tutorials nice and simple for a dummy like me to understand

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

    This guy has the best scripting videos, have helped me learn so much. Mike, could you teach us how to do a working in game leaderboard for lobbies and such?

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

    suggestion for next tutorial: make group only spawns

  • @armandistaken
    @armandistaken 3 года назад +1

    Yay, another amazing tutorial! 🔥🔥 love your videos! 😮🙂

  • @ZennPlanes
    @ZennPlanes 3 года назад

    ima be honest, i have no skill or clue in (how to) script (ing).
    you're tutorials are simple to follow, and you dont go too fast.
    keep doing you man, your incredible

  • @Micser-jz4bi
    @Micser-jz4bi 3 года назад +2

    Idea: How to create a tsunami

  • @SpiritSlayer1
    @SpiritSlayer1 3 года назад +1

    Hi Mike can you please make a tutorial on how to make a touch a player to pass an item tutorial?

  • @RoxFoxz
    @RoxFoxz 3 года назад

    broo this guy is just the mrbeast of scripting, very humble man. thank you for showing us your ways

  • @Micser-jz4bi
    @Micser-jz4bi 3 года назад +1

    Idea:how to make arrow pointer in roblox studio

  • @lisadoesstuff9368
    @lisadoesstuff9368 3 года назад

    Hi Mike! I have a video idea for you You have a bow and there's a target and when you shoot at the target a block appears

  • @CaydenCoston
    @CaydenCoston 3 года назад +1

    Hey do you think you can do when you hit a character it launches them? If you do it would help alot

  • @quietus8193
    @quietus8193 3 года назад

    I just found your account, and I already have to say that - it's the best account about roblox scripting that I've ever found!

    • @TechwithMikeYT
      @TechwithMikeYT  3 года назад +1

      Thanks ☺️

    • @SammynAlgeria
      @SammynAlgeria 3 года назад

      @@TechwithMikeYT Mike can you please tell me how do i make that as a gamepass.

  • @xarm9506
    @xarm9506 3 года назад

    Idea: a tutorial on how to make a survival game with gui stats and other stuff.

  • @1minutetwins249
    @1minutetwins249 3 года назад

    Oh ya and @Tech with Mike can one of your future videos be a kill all button

  • @Dan-Gaming573
    @Dan-Gaming573 3 года назад

    do a tutoral on how to make a jumpscare happen when a Enemy touchs you (a animated jumpscare like in The Mimic)

  • @La3yy
    @La3yy 3 года назад

    tysm for helping me keep it up man!

  • @croneriel1114
    @croneriel1114 3 года назад

    thank you alot mike, your like my online teacher can you make automatic weapons part 3? because im trying to make an automatic weapon in my game, can it be an aim sights and reloading? thank you mike

  • @danniitv
    @danniitv 3 года назад

    i was wondering, idk if this is too complex but can you make a tutorial where if somebody takes ANY damage they will fall over?

  • @mrsteveezzz2180
    @mrsteveezzz2180 3 года назад

    mike i hope you grow big! your vids are helpful!

  • @CADABRIAC
    @CADABRIAC 3 года назад

    hey mike, i really want to add a click to morph (custom morph) to my game.
    if you didn't understand what i mean is like a system when you click a custom morph/block you transform into it. i would appreciate if you could do that :D

  • @godwater1265
    @godwater1265 3 года назад

    I was wonder how i would do this and guess what came up, this video. Cant thank this man enough!

  • @Syeles
    @Syeles 3 года назад

    Hi mike but can you make a video on how to force people to equip items like guns and they cant unequip it

  • @minerboy4145
    @minerboy4145 3 года назад

    a cool tutorial would be on how to forge items using materials. like for example if you had sticks and stone, then you could make like a pickaxe.

  • @CADABRIAC
    @CADABRIAC 3 года назад

    dude, ur amazing :) i'm really happy of you being so helpful and cool

  • @baqonr2898
    @baqonr2898 3 года назад

    Hey Mike Im trying to make a game with weopons and teams can u make a tutorial on how to have weapons that are immune to ur teammates but can hurt/kill enemies thanks.

  • @CoqueyCola
    @CoqueyCola 3 года назад

    Mike pls make a Teleporter who haves a chance to tp another part of the map

  • @davidbennett960
    @davidbennett960 3 года назад +1

    Whould you like to make a game with me Mike?

  • @maxs87988
    @maxs87988 3 года назад

    Could you make a video on how to make a menu when you first open a FPS game please

  • @HiMRWave
    @HiMRWave 3 года назад

    could you make a character shop tutorial?

  • @deniseko7108
    @deniseko7108 3 года назад

    Ello! i have a suggestion/question, how will i make something check if i have something in my inventory? like example i try to leave a room by clicking the door (cuz thats how i do it lol) , but if i dont have an item needed to exit, it just shows a gui saying "get the [item] first!" but if i DO have the item, i can just exit. thanks!!

  • @campeoncito88
    @campeoncito88 9 дней назад

    how would i make this so it only activates when you are holding a specific gear?

  • @cophead9984
    @cophead9984 3 года назад

    Happy 12k subscribed dude

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

      Thank you!!

    • @cophead9984
      @cophead9984 3 года назад

      No thank you you show me how to make Roblox games and codeing

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

    when i try to kill a dummy or a zombie it doesnt work and it only works on players

  • @_big_d_
    @_big_d_ 3 года назад

    thanks so much!

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

    The kill on click isnt working for me I have copied the script and doesnt work

  • @memeboi7842
    @memeboi7842 3 года назад

    U MY FAV YT

  • @TedeaclipsNL
    @TedeaclipsNL 3 года назад

    Hey! can you make a tutorial for: How to make a bitcoin mining tycoon/simulator part1/2/3 etc pls?!?!??!?

  • @mycodesisthisv2420
    @mycodesisthisv2420 3 года назад

    Can u make damage indicators for enemies?

  • @malthehee88
    @malthehee88 3 года назад

    Where do i get your shirt?

  • @Janseen25
    @Janseen25 3 года назад

    Pls can you make a video how to make a gamepass shop pls pls

  • @Creepersoop
    @Creepersoop 3 года назад

    Can you add a cooldown since 'noobs' uses autoclicke-

  • @aderpyduck9559
    @aderpyduck9559 3 года назад

    does this stay if you leave the game?

  • @vtxvxyron6711
    @vtxvxyron6711 3 года назад

    This is amazing! One thing I want to point out is that when a player dies, they are still able to damage another player. Is there a fix to this?

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

      Lol

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

      Yes, I will post updated code soon

    • @vtxvxyron6711
      @vtxvxyron6711 3 года назад

      @@TechwithMikeYT Perfect!

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

      Here is updated local script. Just needed a player health check.
      local player = game.Players.LocalPlayer
      local mouse = player:GetMouse()
      local player = game.Players.LocalPlayer
      local mouse = player:GetMouse()
      local rs = game:GetService('ReplicatedStorage')
      local clickEvent = rs:WaitForChild('ClickEvent')
      local clickDistance = 25
      mouse.Button1Down:Connect(function()
      local model = mouse.Target:FindFirstAncestorOfClass('Model')
      if model and player.Character.Humanoid.Health > 0 then
      local clickedPlayer = game.Players:GetPlayerFromCharacter(model)
      if clickedPlayer then
      local distance = (clickedPlayer.Character.HumanoidRootPart.Position - player.Character.HumanoidRootPart.Position).magnitude
      print(distance)
      if distance

    • @vtxvxyron6711
      @vtxvxyron6711 3 года назад

      @@TechwithMikeYT Thanks!

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

    yes you added magitude yes!
    oh yes and you need to add cool down if not ...
    auto clicker XD

  • @crainics2818
    @crainics2818 3 года назад

    Can you add *SAFE ZONE* ?
    Sorry late

  • @JohnMkrv
    @JohnMkrv 3 года назад +1

    What's your specs? I can't run roblox without lagging but my pc is mid end

    • @WoahItsKris
      @WoahItsKris 3 года назад

      Turn your graphics down to one, and use an FPS Unlocker!

    • @JohnMkrv
      @JohnMkrv 3 года назад

      @@WoahItsKris still nah, Roblox is poorly optimized, I can run GTA V with high graphics at 40-60 FPS

    • @WoahItsKris
      @WoahItsKris 3 года назад

      @@JohnMkrv See if you may have a virus slowing down your computer, and if it is not that reinstall roblox.

    • @JohnMkrv
      @JohnMkrv 3 года назад

      @@WoahItsKris no, why would I have a virus if I bought every game that I have on Steam?

    • @JohnMkrv
      @JohnMkrv 3 года назад

      @@WoahItsKris and plus my new PC is 3x better than my old one which can run roblox

  • @reversebird330
    @reversebird330 3 года назад

    Hey Mike can you play my game?

  • @JustCarl-u9h
    @JustCarl-u9h 4 месяца назад

    how about if npc?

  • @aqilz09
    @aqilz09 3 года назад

    Mike pls pls how to make beyblade pls pls

  • @alexandergaspar4575
    @alexandergaspar4575 3 года назад

    but i want only the owner to do it

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

    0:12 hi

  • @태연-f1u
    @태연-f1u 3 года назад

    can you make a video about how to make random word

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

      Random word for what?

    • @태연-f1u
      @태연-f1u 3 года назад

      I was trying to say that can you make a video about how to make a random word system like example if there is hamburger pizza and icecream the system automatically picks one word on the screen

  • @lukawangia8758
    @lukawangia8758 3 года назад

    hi @tech with mike i wanted to no if ur next vid could be how to make someone continuously buy something using robux so if u have a Invincibility and its not a gamepass how will u make someone continuously buy it all the time. if u are confused abt this comment just reply

    • @JohnMkrv
      @JohnMkrv 3 года назад +1

      Cash grab

    • @JohnMkrv
      @JohnMkrv 3 года назад +1

      Being greedy is not a path of being a good developer

    • @lukawangia8758
      @lukawangia8758 3 года назад

      @@JohnMkrv wuts that

    • @lukawangia8758
      @lukawangia8758 3 года назад

      @@JohnMkrv i want to know somethings thats all

    • @lukawangia8758
      @lukawangia8758 3 года назад

      @@JohnMkrv i dont know how to code though

  • @unexpectedme9992
    @unexpectedme9992 3 года назад

    TURRET or TONK tutorial

  • @lukawangia8758
    @lukawangia8758 3 года назад

    and how did u learn how to code in roblox studio
    ?

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

      A lot of it was just taking video requests and trying to figure out how to do it. I use the developer page for code examples and things I haven't used before. Slowly you build up a better understanding of how things work.

    • @lukawangia8758
      @lukawangia8758 3 года назад

      @@TechwithMikeYT ok thx

    • @lukawangia8758
      @lukawangia8758 3 года назад

      @@TechwithMikeYT i am reading a Roblox wiki and i was trying to figure out wut "i" mean? because i see lots of scripters use "i" and i dont know what it means the Roblox wiki that i am reading only says this:"Now you need to know that there are two main values of a table: i and v. i, or Index Position, is the position of the value in the table." pls help me w/ this

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

      @@lukawangia8758 When looping through a table or list there are 2 part for each item. The first is the position of the item in the list. The first item has a position of 1, the second has a position of 2, etc. Note, other languages usually start positions at 0. The second part is the actual object or value. The letters i and v are temporary variables the store the 2 parts. The letters themselves don't matter and you can use whatever you want. It could be pos and obj if you wanted. Sometimes If the position of the item in the table is not important then people use an underscore _. The first variable will store the position and the other will store the object. Inside the loop the object/value variable can be used to modify the current item the loop is on in the table.

  • @lukawangia8758
    @lukawangia8758 3 года назад

    hi

  • @user-by2sc9lt1s
    @user-by2sc9lt1s 2 года назад

    POV: You came in comments to see if its real

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

    8:51

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

    8:80

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

    10:50

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

    0:19292828181818

  • @fatcheeseman69
    @fatcheeseman69 3 года назад

    poggers

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

    9:50