Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why will this sound not play?

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..

local sound = script.parent.Slateskin
function touch()
	sound:Play()
end

script.parent.Touched:connect(touch)

2 answers

✓ Accepted answer

Well, it's the most obvious one of them all! Capitalize Parent!

local sound = script.Parent.Slateskin
function touch()
    sound:Play()
end

script.Parent.Touched:connect(touch)

1 comment

0

JesusChrist. I am an idiot.

i just need general help with scripting. im trying to learn:)

This discussion is preserved as it was. New answers, comments, and votes are closed.