ROBLOX How to DETECT KEY IS PRESSED AND HELD (or Mouse Button)

preview_player
Показать описание
In this Roblox Studio scripting scripts tutorial for advanced beginners, we will learn how to detect when a specific keyboard key is pressed and held down in Roblox. We will learn how to detect when a specific mouse button is pressed (clicked) and held down.

Related materials:

By PrizeCP Roblox Studio Tutorials for Advanced Beginners Series

Recommended Playlists for New Complete Beginners:

Recommended Playlists for Beginners:

Recommended Playlists for Advanced Beginners:

Have questions? Leave a comment below.

Help support our channel, so we can continue to provide great Roblox Studio Tutorials to everyone...
Like, Subscribe, Donate!!!

Like to help support our channel? Join our membership!
Like to get a shoutout in our videos? Join our membership!!
Like to get started building Roblox games with personalized private tutorials? Join our membership!!!

#roblox #robloxdev #robloxtutorial #robloxscripts #robloxscripting #robloxbuild #programming #computerProgramming #Script #Scripting
Рекомендации по теме
Комментарии
Автор

usefull no annoying intro straight to the point thxsm

crockykid
Автор

tysm that was really helpful, im currently making a simulator game that you have to hold the left mouse button

strunowiec
Автор

omg tysm the only other tutorial i found was like 30 minutes long 🙏

SuprSega
Автор

How can I do it so that there is no time to hold down the button, that is, I want to make a puppet box function in fnaf 2

yggotvc
Автор

Is there a way to make a spam key to run script? So instead of holding down a key to run, you have to spam that key really fast in order to run. Please let me know

breezy.
Автор

do you know how to make a function run when the player lets go of the key

nut
Автор

I have a question is it necessary to use while loop if checking if key is held down?

blank
Автор

can you make a video on how to detect when it is lifted up?

Skeppys_Goat
Автор

Mine is not working I have used this and it's showing up.

robotgod-xmnm
Автор

What If I wanna see if the key held ends

CircuitCodes
Автор

how do you know what player in the server pressed the keys? i want to make a tool where you can press either Q or E and make people who pressed it bigger/smaller

eee_eee
Автор

how i can detect if a key is released?

Oy_AuK
Автор

BE AWARE:
this can be used to make your game lag incredibly much when you spam equip and unequip it
(my replies for more)

Ace_UE
Автор

Plz paste script here i am very borring and XD

Benancio