I’m making a game that involves ragdoll and I think adding impact noises would make it better
you know that in Gmod when you die and you ragdoll you can hear ragdoll impact noises? Yea I wanna do that for my game
If anyone finds a solution or any topic that relates to this and solve my issue it would be very much appreciated (Literally)
1 Like
local torso = script.Parent.Torso
local debounce = false
local waitingtime = 0.75
for i, v in pairs(script.Parent:GetChildren()) do
if v:IsA(“Part”) then
torso.Touched:Connect(function(h)
if not h:IsDescendantOf(script.Parent) and script.Parent.euphoria.V.Value == true then
if v.Velocity.Magnitude >13 then
if v.Velocity.Magnitude >2 then
if not debounce then
debounce = true
local sou=math.random(1,6)
local s=script.Parent.im["Impact"..sou]:clone() -- the im is the folder sound also create a folder and put random impact edit the sou math random and put Impact(number) if is more than six remove six om the math random and put how many impact is on the folder
s.Parent=script.Parent.Torso
s.Name="Impact"
game.Debris:AddItem(s, 2)
s:Play()
wait(waitingtime)
debounce = false
end
end
end
end
end)
end
end
1 Like
also i mean how many impact sound is on the folder
edit the waiting time to make ragdoll impact play sound after 0.75 sec