Uploaded December 2021 | Updated September 2026, 3 weeks ago
💾 Want the full scripts from this tutorial? 👉 gnomecode.com/tutorials/tower-defense
💡 Want more game dev content + early access to videos?
👉 gnomecode.com/academy
In this episode we create a tower that can locate and damage its nearest target.
MY MOBS FREE MODEL roblox.com/library/8266833155/Tower-Defense-Mobs
TIMESTAMPS
0:00 Intro
0:25 Measuring distance between parts
3:30 Using Magnitude
5:10 Finding the nearest target
10:35 Damaging humanoids
13:20 Damaing moving mobs
13:55 Removing killed mobs
15:00 Demonstration
15:35 Outro
S O C I A L S
🧙♂️ WEBSITE gnomecode.com
🔔 DISCORD discord.gg/utqq7zM
🐦X twitter.com/gnomecodeRBLX
🤖 ROBLOX roblox.com/users/18799320/profile
B U S I N E S S - E N Q U I R I E S
📧 gnome@gnomecode.com
💾 Want the full scripts from this tutorial? 👉 gnomecode.com/tutorials/tower-defense
💡 Want more game dev content + early access to videos?
👉 gnomecode.com/academy
In this episode we create a tower that can locate and damage its nearest target.
MY MOBS FREE MODEL roblox.com/library/8266833155/Tower-Defense-Mobs
TIMESTAMPS
0:00 Intro
0:25 Measuring distance between parts
3:30 Using Magnitude
5:10 Finding the nearest target
10:35 Damaging humanoids
13:20 Damaing moving mobs
13:55 Removing killed mobs
15:00 Demonstration
15:35 Outro
S O C I A L S
🧙♂️ WEBSITE gnomecode.com
🔔 DISCORD discord.gg/utqq7zM
🐦X twitter.com/gnomecodeRBLX
🤖 ROBLOX roblox.com/users/18799320/profile
B U S I N E S S - E N Q U I R I E S
📧 gnome@gnomecode.com




