Quick question; I’m scripting a cannon that can shoot canister, and when it hits the ground I plan on the sound of the canister hitting the ground’s playback speed be determined by Random.new() and Random:NextInteger(). My question is, how many “canisters” would I have to be creating to cause a noticeable amount of lag?
quick snippet of code incase you need it
local RNG = Random.new(tick()*10,000)
Impact.PlaybackSpeed = RNG:NextInteger(60, 100)/100
print(Impact.PlaybackSpeed)
Impact:Play()
wait(0.2)
PS. that’s being done thirty times (at different times, of course according to whenever the canister would hit the ground), since the cannon would fire 30 canisters at once