Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do you make it to where when you approach a object it plays a sound?

Asked by
Prioxis 673 Moderation Voter
9 years ago

I made a fireplace but I want people to hear fire crackling whenever they get close but how do I do that do I put the sound in the part or what?

0
and that it plays looped while they are over near the fire Prioxis 673 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

Easy, basically, put the sound i n the fireplace, in any place, then, in the script, put the script in the sound first off, then in the script put:

local sound = script.Parent
sound:Play()

the rest you can find out about on the roblox wiki by typing in "Sound" on the roblox wiki search box.

0
alright thank you Prioxis 673 — 9y
0
yeah, no prob rollercoaster57 65 — 9y
Ad

Answer this question