How would I make sound play if player near

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.

4 Likes

Ye I want it if the player far away they cant hear that it.

1 Like

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.

1 Like