I have got other sounds on my game that play when an event happens, however this script for some reason will not play the sound. and I have no idea why..
1 | local sound = script.parent.Slateskin |
2 | function touch() |
3 | sound:Play() |
4 | end |
5 |
6 | script.parent.Touched:connect(touch) |
Well, it's the most obvious one of them all! Capitalize Parent!
1 | local sound = script.Parent.Slateskin |
2 | function touch() |
3 | sound:Play() |
4 | end |
5 |
6 | script.Parent.Touched:connect(touch) |