RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"When you click my Parts called eat they will disappear and it will play this sound 1278031541"
-- local script in the part local part = script.Parent local soundID = 1278031541 local function onClicked() local sound = Instance.new("Sound") sound.SoundId = "rbxassetid://" .. tostring(soundID) sound.Parent = part sound:Play() part.Transparency = 1 part.CanCollide = false wait(sound.TimeLength) part:Destroy() end part.MouseClick:Connect(onClicked)