how to highlight objects with a mouse | ROBLOX Scripting Tutorial

  Рет қаралды 52,878

kthulu

kthulu

Күн бұрын

Пікірлер: 152
@kthuludev
@kthuludev 2 жыл бұрын
Check out Part 2 if you want to make it so there's a maximum activation range : kzbin.info/www/bejne/iqfGkIGnd7qEidE
@Natbotjuice
@Natbotjuice 2 жыл бұрын
This guy's voice sounds like if you mixed an average teenagers voice with flamingos old voice
@kthuludev
@kthuludev 2 жыл бұрын
i’ll take that as a compliment
@gocrucial
@gocrucial Жыл бұрын
YOU ARE RIGHT
@MagicAnimationsReal
@MagicAnimationsReal Жыл бұрын
holy fuck he’s right
@MacNCheesin
@MacNCheesin Жыл бұрын
Oh my gosh your right
@baconheadhair6938
@baconheadhair6938 8 ай бұрын
@@kthuludevno
@Saykator
@Saykator 6 ай бұрын
It was a really nice tutorial, but I reccomend that, from like 1:15 when you are zooming in, you should show the number of lines in the left size, not just the code. But at all, it was really good :D
@michaelapichova9026
@michaelapichova9026 Жыл бұрын
Man this is super cool, you dserve more subs!
@savioursmile
@savioursmile Жыл бұрын
great tutorial, you deserve a sub!
@CorryLatenZs
@CorryLatenZs Жыл бұрын
THANK YOU MAN YOU ARE A LIFE SAVER KEEP IT GOING YOU ARE THE BEST!!!
@Ikazuri_Dev
@Ikazuri_Dev 2 жыл бұрын
BRO THANKS, I WAS 2 HOURS SEARCHING FOR THAT, MAN YOU ARE A GOD!!!!! Thanks :DDDD
@RickTests
@RickTests 2 жыл бұрын
no way
@Humod-v7w
@Humod-v7w 6 ай бұрын
Don't put God into this
@messier82
@messier82 2 жыл бұрын
I really like this video! Keep up with your content! I think you can go far with this channel!
@kthuludev
@kthuludev 2 жыл бұрын
thank you!!
@kthuludev
@kthuludev 2 жыл бұрын
please comment any suggestions or if you have any requests for future videos !
@maquililo
@maquililo 2 жыл бұрын
maybe some kind of object hunt? I'm making a game where I want the player to find some objects and take them to the place they belong. Also adding that when the player dies; he loses it, and if the player managed to take it where it had to go, the object "giver" or spawn should disappear as well.
@messier82
@messier82 2 жыл бұрын
had be cool to have a pickup system like that one in alone in a dark house! And with the highlight would it be super cool!
@messier82
@messier82 2 жыл бұрын
I would like to know how to do a spotlight that follows your camera (flashlight first person) I had the problem what is more of a pointlight and if you goes to near the wall your light disapear :/
@kthuludev
@kthuludev 2 жыл бұрын
@@messier82 adding it to my list, thank you for the suggestions :))
@VintageVisionStudios
@VintageVisionStudios 2 жыл бұрын
A distance base highlight you are in a certain stud radice and the part/tool adds a highlight
@prod.n8te
@prod.n8te 2 жыл бұрын
cool video, good tutorial, now i wanna get back into making roblox games very poggers
@kthuludev
@kthuludev 2 жыл бұрын
thank you :D
@kthuludev
@kthuludev 2 жыл бұрын
ATTENTION! Due to a roblox update, this no longer works inside of studio, but no worries, it will still work in game. let me know if you still face issues with this. And before writing a comment asking for help, please make sure that youve triple checked that your script is the same as in the video!! Subscribe for future tutorials!!
@321boom4
@321boom4 2 жыл бұрын
yeah dosent work in the roblox player
@acanopyhat1958
@acanopyhat1958 Жыл бұрын
they fixed it now.
@roblox-w6d6l
@roblox-w6d6l Жыл бұрын
Is there a way to tag players? I tried tagged the starter characterscripts, but nothing happened...
@Burgzilla
@Burgzilla Жыл бұрын
@@roblox-w6d6l is there a way to give them a tag when they join?
@roblox-w6d6l
@roblox-w6d6l Жыл бұрын
@@Burgzilla yeah
@nxrbix
@nxrbix Жыл бұрын
LocalHighlighter script for the lazy = local player = game.Players.LocalPlayer local mouse = player:GetMouse() local CollectionService = game:GetService("CollectionService") mouse.Move:Connect(function() if not mouse.Target then script.Highlight.Adornee = nil return end if CollectionService:HasTag(mouse.Target,"Highlightable") script.Highlight.Adornee = mouse.Target return elseif CollectionService:HasTag(mouse.Target.Parent,"Highlightable") then script.Highlight.Adornee = mouse.Parent return end script.Highlight.Adornee = nil end)
@coltbusters
@coltbusters 8 ай бұрын
you forgot the "then" after "if CollectionService:HasTag(mouse.Target,"Highlightable")"
@Alvra
@Alvra 6 ай бұрын
you also wrote the last part incorrectly, it should be "mouse.Target.Parent" (not mouse.Parent)
@miro_theburger
@miro_theburger 8 ай бұрын
thanks dude, this really helped!. although i ended up using selectionbox instead of a hightlight because it wont let me hightlight transparent objects
@ytcommenttraveler
@ytcommenttraveler Жыл бұрын
this was very helpful! thanks!
@randomguy8092
@randomguy8092 Жыл бұрын
i like how i used this script because the click detector wasnt showing the mouse pointer thing, but the second i finished this script, the pointer started working not sure how it got fixed, but im still keeping the highlight
@MineBloxStudios_
@MineBloxStudios_ 2 жыл бұрын
Can you make it work for humanoids? and how to make it linger?
@aqaisback9517
@aqaisback9517 6 ай бұрын
this video is fire ! tyyysm
@vadalfn7218
@vadalfn7218 2 жыл бұрын
Hey, if you hover over a Gui will appear.
@universalgames2901
@universalgames2901 Жыл бұрын
Can you please make a modded script on how to always check when the mouse is hovering over an object instead of just when the move event is fired?
@Luzzzzzo
@Luzzzzzo Жыл бұрын
On my way to making a grabbing system for my game, got the easy part over with :(
@ih.wo_
@ih.wo_ 12 күн бұрын
I AM SUBSCRIBER NUMBER 400 OMG
@radioactivepinnaple8954
@radioactivepinnaple8954 Жыл бұрын
oddly enoough, the highlight seems to stay when moving mouse to baseplate from object
@6rydrtee
@6rydrtee 2 жыл бұрын
i did everything right, but it wont work in roblox or studio.
@Czectly
@Czectly Жыл бұрын
wth is collection service i have been coding for over 1 year and have never heard of it "i understand everything else"
@meghumsingh7163
@meghumsingh7163 11 ай бұрын
bro pls explain me how did you do the scripting i also want to make same thing happen but i want to script onmy own
@trinitrotoluene3D
@trinitrotoluene3D Жыл бұрын
i was wondering how Doors did this and this just popped into my recommended youtoob is smart
@L3eoYT
@L3eoYT 9 ай бұрын
The Script Pls Pin this: local player = game.Players.LocalPlayer local mouse = player:GetMouse() local CollectionService = game:GetService("CollectionService") mouse.Move:Connect(function() if not mouse.Target then script.Highlight.Adornee = nil return end if CollectionService:HasTag(mouse.Target,"Highlightable") then script.Highlight.Adornee = mouse.Target return elseif CollectionService:HasTag(mouse.Target.Parent, "Highlightable") then script.Highlight.Adornee = mouse.Target.Parent return end script.Highlight.Adornee = nil end)
@WeGreenOrBlue
@WeGreenOrBlue 2 жыл бұрын
whenever i hover my mouse over the object, the highlight doesnt go away. Here's my code: local player = game.Players.LocalPlayer local mouse = player:GetMouse() local CollectionService = game:GetService("CollectionService") mouse.Move:Connect(function() if not mouse.Target then script.Highlight.Adornee = nil return end if CollectionService:HasTag(mouse.Target, "Highlightable") then script.Highlight.Adornee = mouse.Target return elseif CollectionService:HasTag(mouse.Target.Parent,"Highlightable") then script.Highlight.Adornee = mouse.Target.Parent return end script.Highlight.Adornee = nil end)
@linnthitaung1901
@linnthitaung1901 2 жыл бұрын
yep same problem
@azariyacob6200
@azariyacob6200 2 жыл бұрын
Same
@kthuludev
@kthuludev 2 жыл бұрын
check pinned
@WeGreenOrBlue
@WeGreenOrBlue 2 жыл бұрын
@@kthuludev wait it actually works but the thing is the bug is only on roblox studio. when i test the game on roblox itself it works
@linnthitaung1901
@linnthitaung1901 2 жыл бұрын
@@kthuludev thanks man I love your channel. looking forward for more tutorials
@Pumpkin.Knight11
@Pumpkin.Knight11 3 ай бұрын
Tysm keep on posting
@iluvcynth
@iluvcynth 2 жыл бұрын
Thank you Flamingo for this tutorial
@frnotpixel
@frnotpixel Жыл бұрын
HE DOES SOUND LIKE ALBERT THOUGH 💀💀
@Foxxrss
@Foxxrss 2 жыл бұрын
Anyone knows how to make a little description appear at like the bottom middle of the screen when hovering over a specified part?
@Somebodydk
@Somebodydk 2 жыл бұрын
yeah that can be useful to put a description like 'Yellow Key' when hovering
@DandyBobloc
@DandyBobloc 4 ай бұрын
One of my problem is.. everytime i add a highlight to something, i can't see it! ingame, in studio and in other places too! why is that?
@mycatstares
@mycatstares 2 жыл бұрын
Broo you the best thx :)
@gledekatta1245
@gledekatta1245 Ай бұрын
what if my model had a folder, does it still work? im trying to figure it out still dont find out whats wrong
@duckypower1220
@duckypower1220 Жыл бұрын
how do you get the highlight to show, cuz when i search it up, it doesn't appear
@fwbj
@fwbj 2 жыл бұрын
Hey! I was just wondering how can I make it so youd have to be a certain distance to activate the Highlight
@kthuludev
@kthuludev 2 жыл бұрын
Great question!! not sure how I overlooked that tbh, I’ll make a video on it tonight :)
@fwbj
@fwbj 2 жыл бұрын
@@kthuludev Thank you very much!
@kthuludev
@kthuludev 2 жыл бұрын
@@fwbj video's up :D, comment on it and let me know if it solved your issue: kzbin.info/www/bejne/iqfGkIGnd7qEidE
@ZombieForLife_Unknown
@ZombieForLife_Unknown 10 ай бұрын
17:43:09.078 Highlight is not a valid member of LocalScript "Players.(PlayerName).PlayerScripts.CardHighlightScript" - Client - CardHighlightScript:15 -- line 15 (The PlayerName is my player btw) This is the error I get when I hover over the model. i have the full script and I copied and pasted into the local script in starter character scripts. Do you know why the script is not working? Here is the full script too: local plr = game.Players.LocalPlayer local mouse = plr:GetMouse() local CS = game:GetService("CollectionService") mouse.Move:Connect(function() if not mouse.Target then script.Highlight.Adornee = nil return end if CS:HasTag(mouse.Target, "Highlightable") then script.Highlight.Adornee = mouse.Target return else if CS:HasTag(mouse.Target.Parent, "Highlightable") then script.Highlight = mouse.Target.Parent return end end script.Highlight.Adornee = nil end) Any ideas on why this does not work? (I also added the correct tag)
@ElLuchadorDeYuca
@ElLuchadorDeYuca Жыл бұрын
Nice tutorial bro
@Tomasito16
@Tomasito16 2 ай бұрын
Hey, how could I make it so you can move it?. I mean, I'm looking for the same system but so you can move blocks with the mouse.
@Moh47uMoh47u
@Moh47uMoh47u Жыл бұрын
I have a question can u make it with gui?
@E-Bunny_Girl
@E-Bunny_Girl 2 жыл бұрын
hey i have a glitch when i try to search for highlight it doesnt show up i tried looking for it and i didnt find it in youtube mind helping??
@Denisz666_
@Denisz666_ Жыл бұрын
same problem
@E-Bunny_Girl
@E-Bunny_Girl Жыл бұрын
@@Denisz666_ i fixed it and its easy you basically turn off recommended and it will show up I cant remeber where excatly it is but right click the plus i think!
@Aygent
@Aygent 2 жыл бұрын
hey, highlight doesn't seem to be working for anything. do you know a fix?
@kthuludev
@kthuludev 2 жыл бұрын
send me a screenshot of your code on discord (kthulu#0279)
@azariyacob6200
@azariyacob6200 2 жыл бұрын
Put it the highlight on the script to enable so it will work
@Aygent
@Aygent 2 жыл бұрын
@@kthuludev not the code, the actual highlight instance
@kthuludev
@kthuludev 2 жыл бұрын
check pinned comment
@Aygent
@Aygent 2 жыл бұрын
@@kthuludev ah yes, thanks (you earned a sub) edit: it works in studio now.
@EloiCapo04
@EloiCapo04 4 ай бұрын
I have done everything that the video says, but the highlight dont appear. Any ideas? Good content btw.
@craftak
@craftak Жыл бұрын
Can you make it with text too?
@Yourdearaiko
@Yourdearaiko 3 ай бұрын
even tho it worked, i am trying to think of a solution for an problem: when i hover a rig for example, if it haves acessories, it won't work the hover. is there a way to make this work? (sorry, my english is pretty bad--)
@compilererror2836
@compilererror2836 Жыл бұрын
Hey, this works like a charm with single parts, but for some reason if I try to do it on a model it will not show up, even when printing the highlight’s adornee shows that the model is the adornee.
@compilererror2836
@compilererror2836 Жыл бұрын
Solved: just put the script.Highlight.Adornee = nil at the end in an else statement.
@ninflex791
@ninflex791 Жыл бұрын
@@compilererror2836 how
@ninflex791
@ninflex791 Жыл бұрын
EXPLAIN PSLSSS
@HarryCantDev
@HarryCantDev Жыл бұрын
also make sure in the model theres no model too so you have to ungroup everything in the model
@LittleShibaUwU
@LittleShibaUwU 2 жыл бұрын
What if Player model highlight?
@NotOn_Console
@NotOn_Console Жыл бұрын
how to make it work in a folder
@thegarry7542
@thegarry7542 Жыл бұрын
You’re the goat
@soz5647
@soz5647 2 жыл бұрын
thank you so much
@DustyDre-f6l
@DustyDre-f6l 10 ай бұрын
Can I do this with a local part?
@shut2101
@shut2101 Ай бұрын
Use this line of code please note this wont work on models only parts local Player = game.Players.LocalPlayer local Mouse = Player:GetMouse() Mouse.Move:Connect(function() local Target = Mouse.Target -- Gets the part the mouse is hovering over if Target and Target:FindFirstChild("Highlight") then Target.Highlight.Enabled = true -- Enable the highlight on hover end -- Disable highlights on other parts for _, part in workspace:GetDescendants() do if part:IsA("BasePart") and part:FindFirstChild("Highlight") and part ~= Target then part.Highlight.Enabled = false end end end)
@Islamic_Facts82
@Islamic_Facts82 Жыл бұрын
bery epic, thanks man ur the best
@TahkodaPlaysGaming
@TahkodaPlaysGaming 6 ай бұрын
how do i make it glow when i click it
@BajBS
@BajBS Жыл бұрын
how do you make it so it activates when you're a certain distance away from it?
@stx_1
@stx_1 Жыл бұрын
search magnitude tutorial magnitude is distance from 1 part to another
@BajBS
@BajBS Жыл бұрын
@@stx_1 Nty that’s probably a virus I don’t trust you scammer
@stx_1
@stx_1 Жыл бұрын
@@BajBS ???
@BajBS
@BajBS Жыл бұрын
@@stx_1 scammer
@cosminalepic4221
@cosminalepic4221 Жыл бұрын
what the heck you mean?? magnitude literally is a thing in lua scripting, its used to as what st there said. (or its just a joke you say scammy scam)
@x3veren
@x3veren Жыл бұрын
Can u make it have a limited range?
@kthuludev
@kthuludev Жыл бұрын
check pinned
@Vexdi
@Vexdi 2 жыл бұрын
does it work with meshes? cant seem to make it work with em
@kthuludev
@kthuludev Жыл бұрын
should work fine
@бричфорумс
@бричфорумс Жыл бұрын
if i have model?
@Omjjk_Kaboom
@Omjjk_Kaboom 2 ай бұрын
Thanks!
@kthuludev
@kthuludev 2 жыл бұрын
updated version soon
@ripooof
@ripooof 2 жыл бұрын
o
@BabyRico
@BabyRico 2 жыл бұрын
does this work to highlight a ui
@kthuludev
@kthuludev 2 жыл бұрын
the highlight instance doesn't work on UIs, it only highlights game objects. You could make a custom UI highlighter function though that changes the border color to white or whatever color you want when you hover over a UI, maybe I'll add UI highlighting to the list of future tutorials
@1cocopenguin
@1cocopenguin 2 жыл бұрын
amazing
@bloxcomic6377
@bloxcomic6377 2 жыл бұрын
thanks g this worked
@Somedude-qc6wl
@Somedude-qc6wl Жыл бұрын
It doesnt work :C
@RamanHamza
@RamanHamza Жыл бұрын
thanks
@COWMASTER_
@COWMASTER_ Жыл бұрын
didnt work
@mundoblitz9178
@mundoblitz9178 6 ай бұрын
Genius
@literalnuisances
@literalnuisances 2 ай бұрын
tysm
@U22351
@U22351 8 ай бұрын
4:06
@utbay6493
@utbay6493 Жыл бұрын
Why tf add more script that doesn't make any sense that u want show us how smart you are, Blush just use MouseHoverEnter:Connect(function() 💀💀
@kthuludev
@kthuludev Жыл бұрын
you seem to misunderstand, in this tutorial i use collectionservice so players can easily tag what it is they want to be highlighted. I am aware of clickdetectors and the mousehoverenter function of them but that is not what I chose to use for the purposes of this video. For instance, what if you had some object in your game that had a click detector but you didn’t want it highlighted? using tags, we can make sure to only highlight objects we want highlighted. I don’t appreciate that you immediately jumped to the conclusion that i am trying to “show off how smart i am”. I don’t claim to be smart, in fact, i am very dumb, and make lots of mistakes when coding.
@utbay6493
@utbay6493 Жыл бұрын
@@kthuludev why can't just say While true do Wait() Local All = Game.workspace:GetChildren()?
@utbay6493
@utbay6493 Жыл бұрын
@@kthuludev Ok i appreciate what u r trying to say i wasn't mean to call u that But Yk there's some people's who add Script that doesn't make any Sense, for example, someone trying to print Hellos world so he is saying Local Type = Hello Local Type2 = World Local TypePerv = {} Print(Type, Type2) If not Print(Type, Type2) Print(TypePerv) And Bruh why can't I just say Print ("Hello world") Like u understand what I mean
@kthuludev
@kthuludev Жыл бұрын
@@utbay6493 if i understand what you mean correctly, than it’s because using collection service is a faster & better performing way to do it. you can read through the documentation for CollectionService on the roblox create documentation online if you’d like to learn more about it, how it’s used, and when you should use it :)
@kthuludev
@kthuludev Жыл бұрын
@@utbay6493 i understand
@whatehjester8320
@whatehjester8320 2 жыл бұрын
!!!WORKING SCIPT IN REPLYS!!!
@whatehjester8320
@whatehjester8320 2 жыл бұрын
Script: local outline = script.Outline local curret = nil local plr = game.Players.LocalPlayer local mouse = plr:GetMouse() local collect = game:GetService("CollectionService") mouse.Move:Connect(function() if not mouse.Target then outline.Adornee = nil return end if collect:HasTag(mouse.Target,"Item") then outline.Adornee = mouse.Target return end outline.Adornee = nil end) -- Put your hightlight in the script and name your tag "Outline". Also if you copyed the "Script:" part then delete that.
@whatehjester8320
@whatehjester8320 Жыл бұрын
Fixed
@mad_jelly
@mad_jelly 2 жыл бұрын
Didn’t work
@vickytb
@vickytb 2 жыл бұрын
Due to a roblox update, this no longer works inside of studio, but no worries, it will still work in game.
@Oy_AuK
@Oy_AuK Жыл бұрын
doesn't works
@kthuludev
@kthuludev Жыл бұрын
you get any errors?
@Oy_AuK
@Oy_AuK Жыл бұрын
@@kthuludev Yea, the highlight dosen't appears
@daarianx7
@daarianx7 Жыл бұрын
@@Oy_AuK he meant errors in the output
@Oy_AuK
@Oy_AuK Жыл бұрын
@@daarianx7 oh
@Haren69
@Haren69 2 жыл бұрын
Doesnt work i added your discord
How To EASILY Make Procedural Animations In Roblox
6:46
Roox4
Рет қаралды 123 М.
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН
24 Часа в БОУЛИНГЕ !
27:03
A4
Рет қаралды 7 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
How To Highlight Objects With A Mouse | Roblox Studio Tutorial
4:50
23 Tiny Texture Updates Minecraft Should Add
14:59
Skip the Tutorial
Рет қаралды 205 М.
Projectile Physics - Roblox Scripting Tutorial
17:47
Suphi Kaner
Рет қаралды 101 М.
Breaking Melon Playground With Your Dumb Ideas
8:24
GamingWithSkull
Рет қаралды 40 М.
Essential UI Tips & Tricks | Roblox Studio
9:19
Stewiepfing
Рет қаралды 90 М.
the 4 steps people use to make amazing particles
22:49
nearunderstandings
Рет қаралды 309 М.
Custom ProximityPrompt Tutorial | Roblox Studio
24:16
CyberCreator
Рет қаралды 119 М.
How to make a Directional Movement System on Roblox Studio
7:06
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН