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...
PIN THIS MIKE
You've been pinned!
@@TechwithMikeYT TYSM
@@TechwithMikeYT sorry I was late
@@TechwithMikeYT I was eating
@@TechwithMikeYT can i just get a normal kill player? No click
Thanks dude, you alwags make your tutorials nice and simple for a dummy like me to understand
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?
suggestion for next tutorial: make group only spawns
Yay, another amazing tutorial! 🔥🔥 love your videos! 😮🙂
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
Thanks!
Idea: How to create a tsunami
Hi Mike can you please make a tutorial on how to make a touch a player to pass an item tutorial?
broo this guy is just the mrbeast of scripting, very humble man. thank you for showing us your ways
Idea:how to make arrow pointer in roblox studio
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
Hey do you think you can do when you hit a character it launches them? If you do it would help alot
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!
Thanks ☺️
@@TechwithMikeYT Mike can you please tell me how do i make that as a gamepass.
Idea: a tutorial on how to make a survival game with gui stats and other stuff.
Oh ya and @Tech with Mike can one of your future videos be a kill all button
do a tutoral on how to make a jumpscare happen when a Enemy touchs you (a animated jumpscare like in The Mimic)
tysm for helping me keep it up man!
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
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?
mike i hope you grow big! your vids are helpful!
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
I was wonder how i would do this and guess what came up, this video. Cant thank this man enough!
Glad I could help!
Hi mike but can you make a video on how to force people to equip items like guns and they cant unequip it
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.
dude, ur amazing :) i'm really happy of you being so helpful and cool
I appreciate that!
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.
Mike pls make a Teleporter who haves a chance to tp another part of the map
Whould you like to make a game with me Mike?
Could you make a video on how to make a menu when you first open a FPS game please
could you make a character shop tutorial?
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!!
how would i make this so it only activates when you are holding a specific gear?
Happy 12k subscribed dude
Thank you!!
No thank you you show me how to make Roblox games and codeing
when i try to kill a dummy or a zombie it doesnt work and it only works on players
thanks so much!
The kill on click isnt working for me I have copied the script and doesnt work
U MY FAV YT
Hey! can you make a tutorial for: How to make a bitcoin mining tycoon/simulator part1/2/3 etc pls?!?!??!?
Can u make damage indicators for enemies?
Where do i get your shirt?
Pls can you make a video how to make a gamepass shop pls pls
Can you add a cooldown since 'noobs' uses autoclicke-
does this stay if you leave the game?
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?
Lol
Yes, I will post updated code soon
@@TechwithMikeYT Perfect!
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
@@TechwithMikeYT Thanks!
yes you added magitude yes!
oh yes and you need to add cool down if not ...
auto clicker XD
Can you add *SAFE ZONE* ?
Sorry late
What's your specs? I can't run roblox without lagging but my pc is mid end
Turn your graphics down to one, and use an FPS Unlocker!
@@WoahItsKris still nah, Roblox is poorly optimized, I can run GTA V with high graphics at 40-60 FPS
@@JohnMkrv See if you may have a virus slowing down your computer, and if it is not that reinstall roblox.
@@WoahItsKris no, why would I have a virus if I bought every game that I have on Steam?
@@WoahItsKris and plus my new PC is 3x better than my old one which can run roblox
Hey Mike can you play my game?
how about if npc?
Mike pls pls how to make beyblade pls pls
but i want only the owner to do it
0:12 hi
can you make a video about how to make random word
Random word for what?
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
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
Cash grab
Being greedy is not a path of being a good developer
@@JohnMkrv wuts that
@@JohnMkrv i want to know somethings thats all
@@JohnMkrv i dont know how to code though
TURRET or TONK tutorial
and how did u learn how to code in roblox studio
?
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.
@@TechwithMikeYT ok thx
@@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
@@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.
hi
POV: You came in comments to see if its real
8:51
8:80
10:50
0:19292828181818
poggers
9:50