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

Sound Won't Play?

Asked by 8 years ago

I have never used sounds I checked the wiki can't find anything please help

function bullethit(hit)
    local bullet = game.Workspace.bullet
    local part = hit.Parent
    if hit.Parent.Name == bullet then
        local sound = Instance.new("Sound")
        sound.SoundId = "https://www.roblox.com/Redfoo-Juicy-Wiggle-item?id=229932218"
        sound.Parent = game.Workspace.Wall
        wait(3)
        sound:Play()
    end
end

script.Parent.Touched:connect(bullethit)

1 answer

Log in to vote
1
Answered by 8 years ago

Line 6 should be: sound.SoundId = "rbxassetid://229932218"

0
oh johndeer2233 439 — 8y
0
Please note "https://www.roblox.com/?id=229932218" would work as well. Link150 1355 — 8y
0
Indeed ClodexThePill 10 — 8y
Ad

Answer this question