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

Can someone tell me why this is wrong?

So I'm trying to get my GUI to make a sound play, and then a part with a Click Detector stop that sound and play a different sound.

My GUI's code is:

function onClick()
	game.workspace.Phone.PhonePart.Call.IsPlaying = true
end

My Part's Code is:

function onClick()
	if script.parent.Call.IsPlaying=true then
		script.parent.Dispatch.IsPlaying=true 
		script.parent.Call.Playing = false
	end
end

And my structure is: http://prntscr.com/8vbcy3 http://prntscr.com/8vbd36

Can anyone help?

1 answer

✓ Accepted answer

use
:Play() and :Stop() instead of .IsPlaying

1 comment

2

^ umg, how can I be that dumb?

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