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

Why is this sound not playing?

Asked by
P100D 590 Moderation Voter
8 years ago

I want to play the collide.wav sound, and it's not working! The "hit" variable is a part.

local s = Instance.new("Sound", hit)
s.SoundId = "12221984"
s:Play()

1 answer

Log in to vote
1
Answered by 8 years ago

Change SoundId to "http://www.roblox.com/asset/?id=12221984"

1
Alternatively, change it to "rbxassetid://12221984" 1waffle1 2908 — 8y
0
^If you wanted to make it easy. ;) ModZombie 70 — 8y
Ad

Answer this question