7. How to use Events in Roblox Studio 2020 Touched Connect

Опубликовано: 04 Август 2026
на канале: Roblox, Lua and Love2D lessons
11,824
321

Want to thank the author? Donate https://donationalerts.com/r/luaru
In addition to properties and functions, objects have #EVENTS
The #BrowseObjects window will tell you which parts have which events. And what the event parameters are.
How do I call parents to school, that is, how do I call a FUNCTION when an EVENT occurs? #Connect (function)
Call Print on touch!
Show a STICKER on touch. #Touched
Play music on touch.
Move Script to the Button part
Who's your daddy, Script?
Duplicate the existing button. HOORAY!
Turn off the sound and hide the sticker when the #TouchEnded event occurs
Simple homework. Perfect for #OBBY

Learning game programming with #Lua in #RobloxStudio
VKontakte group https://vk.com/urokiroblox
The source code for the Roblox playlists from my lessons is here: https://github.com/D0NM/lua-lessons-r...

** Useful Resources About Lua and #Love2D without Roblox **
All the source code for my lessons is here: https://github.com/D0NM/lua-lessons-ru