RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a gui that when clicked makes a sound effect play."
-- LocalScript inside the GUI Button local button = script.Parent local sound = Instance.new("Sound") sound.SoundId = "rbxassetid://your_sound_id_here" sound.Parent = button local function onClick() sound:Play() end button.MouseButton1Click:Connect(onClick)