#how to add to this script to play sound

5 messages · Page 1 of 1 (latest)

rigid elk
#

script.Parent.Touched:Connect(function(hit)
if hit and hit.parent:FindFirstChild("Humanoid") then
script.Parent:Destroy()
game.ReplicatedStorage.BaconJumpscare.Parent = game.Workspace
wait(1)
game.Workspace.BaconJumpscare.Parent = game.ReplicatedStorage
end
end)

manic junco
#

use sound:Play()
moving the sound to the workspace won't change anything unless it is already playing

rigid elk
manic junco
#
script.Parent.Touched:Connect(function(hit)
    if hit and hit.parent:FindFirstChild("Humanoid") then 
        script.Parent:Destroy() 
        game.ReplicatedStorage.BaconJumpscare.Parent = game.Workspace
         game.Workspace.BaconJumpscare:Play()
        wait(1)
        game.Workspace.BaconJumpscare:Stop()
        game.Workspace.BaconJumpscare.Parent = game.ReplicatedStorage
    end 
end)
#

@rigid elk