local Sound = script.Parent.Noise
while true do
Sound:Play()
wait(1)
Sound:Stop()
end
I want to make the sound only play if a player is near the cat.
local Sound = script.Parent.Noise
while true do
Sound:Play()
wait(1)
Sound:Stop()
end
I want to make the sound only play if a player is near the cat.
Do you have a specific reason to make the sound play if the player is near a cat through the script? You can edit the properties of the sound (roll off distances) instead.
Ye I want it if the player far away they cant hear that it.
Im pretty sure the Sound Instance itself has a built in property that sets the distance a player can hear that sound from. You can use that.