Roblox Studio Sound on Touch (Easy Tutorial)

Опубликовано: 24 Май 2026
на канале: NotBeastXD - Roblox
62
4

In this quick Roblox Studio tutorial, I show you TWO super easy ways to make a part play a sound when a player touches it. Perfect for beginners, obby creators, and anyone improving their scripting skills!

⭐ METHODS COVERED:
1. Using SoundService with a named Sound
2. Using a Sound object with a direct Sound ID

Both scripts are simple, beginner-friendly, and work in any Roblox game.

💡 This video is part of a mini-series where I teach small but useful Roblox Studio tips to help you become a better creator.

📌 What you’ll learn:
How to detect when a player touches a part
How to play sounds using SoundService
How to use SoundIds directly inside parts
Basic scripting structure for touch events

👍 Like the video if it helped!
📥 Comment what tutorial you want next!
🔔 Subscribe for more short, easy Roblox Studio tips!

#Roblox #RobloxStudio #RobloxDev #RobloxTutorial #Scripting #Lua #GameDev
Scripts Used in the Video:
Method 1-

local part = script.Parent
local sound = game.SoundService:WaitForChild("TouchSound")

part.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
sound:Play()
end
end)

Method 2-

local part = script.Parent
local sound = part:WaitForChild("TouchSound")

part.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
sound:Play()
end
end)