Uploaded March 2022 | 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
We finally make the towers configurable by adding 5 target modes to choose from; first, last, nearest, strongest, and weakest. Finally, we finish up with some bug fixes/improvements to our upgrade/placement system.
TIMESTAMPS
0:00 Intro
1:00 Target button + local script
4:25 FindTarget function
11:00 Tracking Mob position
12:35 Target: Near
16:42 Target: First
20:10 Target: Last
21:45 Target: Strong
23:25 Target: Weak
24:29 Quick fix
26:32 Switching modes
33:32 Updating Button Text
40:58 Keeping mode on upgrade
43:43 Fixing max towers limit
47:17 Fixing range circle placement
50:15 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
We finally make the towers configurable by adding 5 target modes to choose from; first, last, nearest, strongest, and weakest. Finally, we finish up with some bug fixes/improvements to our upgrade/placement system.
TIMESTAMPS
0:00 Intro
1:00 Target button + local script
4:25 FindTarget function
11:00 Tracking Mob position
12:35 Target: Near
16:42 Target: First
20:10 Target: Last
21:45 Target: Strong
23:25 Target: Weak
24:29 Quick fix
26:32 Switching modes
33:32 Updating Button Text
40:58 Keeping mode on upgrade
43:43 Fixing max towers limit
47:17 Fixing range circle placement
50:15 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










