RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"When this script's parent is touched, the game will play a sound that is found in the part."
-- script for playing sound on touch local part = script.Parent local sound = part.Sound local function playSoundOnTouch(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then sound:Play() end end part.Touched:Connect(playSoundOnTouch)