This script is a local script inside of the baseplate it is supposed to make a sound play when touched. This does not work.
1 | function onTouch(part) |
2 | script.Parent.Parent.Sound:Play() |
3 | end |
4 | script.Parent.Touched:connect(onTouch) |
Local scripts can only be run on the client. Use a regular script for this, and preferably put it in ServerScriptStorage, it would like this.
1 | --In serverscriptstorage |
2 | workspace.Baseplate.Touched:connect( function () |
3 | workspace.Sound:Play() --I assume this is where it is? |
4 | end ) |