So I’ve been re-working my church model recently for one of my games on ROBLOX. I’ve completed everything except the bell part. I have the model ready but need the bell to play a ringing sound randomly between the range of 5-10 minutes.
Basically what I’m trying to achieve is a script that will make my bell model play a ringing sound randomly throughout 5-10 minutes.
I’m aware that this is probably very easy to make, but since I’ve got almost no experience when it comes to scripting I’m unable to make it.
repeat
local allsound = --sound which is in a group
local select = allsound[math.random(1,#allsound)] --this is a sound you get
select:Play()
select.Ended:Wait()
wait()
until false