What do you want to achieve? Randomly timed sounds in my game
What is the issue? I dont know how to script it
What solutions have you tried so far? i looked for topics on the forum, only found a death sound one
Here is what I have
local Char = script.Parent
local SoundFolder = game.Workspace.Sounds
local Sounds = SoundFolder:GetChildren()
local Humanoid = Char:WaitForChild("Humanoid")
local HumanoidRootPart = Char:WaitForChild("HumanoidRootPart")
local ChosenSound = Sounds[math.random(1,#Sounds)]:Clone()
ChosenSound.Parent = HumanoidRootPart
ChosenSound:Play()