How much time approximately does it take for part of a script to be executed?
Let's say I want to make part of a game music-based, where something happens in the rhythm of the BGM. And let's say the tempo is 120 and the code in the script is:
05 | script.Parent.Transparency = 1 |
07 | script.Parent.CanCollide = false |
11 | script.Parent.Transparency = 0 |
13 | script.Parent.CanCollide = true |
Now, if this is tested, you can see that it doesn't exactly match the tempo after a few. So the only thing I need to know is how long it takes for something like "script.Parent.Transparency = 1" to be executed in the script so I can adjust the wait times.