Nerbzzz
(Nikki)
March 10, 2020, 12:24pm
1
So i want to detect on when i press “CRTL” the script detects on who my mouse is pointed on, How would i do that?
Mouse.KeyDown:Connect(function(key)
if key:byte() == 50 then
-- detect on who's character my mouse is on here
end
end)
Any help is helpfull
Nerbzzz
(Nikki)
March 10, 2020, 12:26pm
2
NEVERMIND, I found out
What you do is Mouse.Target and it will detect on what your mouse is on, Sorry!
1 Like
colbert2677
(ImagineerColbert)
March 10, 2020, 1:05pm
3
You shouldn’t be using KeyDown anyway, it’s deprecated. You should be using either UserInputService or ContextActionService if you are looking to create keybinded actions.
4 Likes
Nerbzzz
(Nikki)
March 10, 2020, 3:10pm
4
Well i’m learning on how userinputservice works but im kinda lazy