So Im new to scripting I barely know anything so when I want to do or learn things I go and find a tutorial. I was following along this tutorial https://youtu.be/6C9-Hud4UiY but my function did not run and it had no errors. So I added prints to find where it stopped working and it just stops working when it comes to function I tried everything that came into my mind but couldn't find a soliton could you guys help me?
Heres The Code: https://pastebin.com/JTUYh0vL
It stops working when it comes to line 23

2 comments
uh, no they clearly called the end of the function at line 38??? but yeah your right abt the last part
You must've read the function wrong. When put into Roblox Studio, the end of the function is actually at line 83. The end at line 38 is a part of an if statement that starts at line 32. They then call the function 50 times using a for loop, but the for loop is in the function itself.