Are there any ways to limit a sound to a certain distance when the sound is in a Local script?
The sound's file location is as follows Tool LocalGui Sound1 Sound2 Handle
Currently the script I have is: if key == "k" then script.Sound1:Play() print("Sound1- Check")
(Which works)
Do I have to do this:
local maxDist=30
if key == "k" then
if dist <= maxDist then
local c = Sound1:Clone()
table.insert(sounds, c)
c.Parent = v.PlayerGui
script.Sound1:Play()
print("Sound1 - Check")