In this 13th episode of "How to Script on Roblox," I explain how to create animations and use them for scripting, using the KeyframeReached event, and more.
If you want to learn how to create a game on Roblox with Roblox Studio, it's important to know how to comment, script, and code to create complex and original systems for your games and transform your ideas into functional scripts. This way, you'll finally have the ability to create a new game without needing to use pre-made templates.
0:00 Creating a Rig and an Animation
1:10 Animation Priorities
1:40 The KeyframeName (and AnimationEvents)
2:20 Properly Publishing the Animation
3:24 Creating the Animation Instance
3:50 Client Scripting
5:03 Creating an AnimationTrack and the :Play() function
6:56 Why Play the Animation on the Client? 7:16 Use KeyframeReached to detect hits
10:29 Disconnect the event with :Disconnect()
11:22 Detect that the hit object is a player
12:16 Add a sound effect
12:43 Prevent hit spam
14:04 End