Hi guys, So uh can anyone help me with this script:
Sound = Instance.new("Sound")
Sound.Parent = game.workspace
Sound = "9815509707"
function onclick(mouse)
Sound:Play()
end
made you a script that works
01 | local player = game:GetService( "Players" ).LocalPlayer |
02 | local mouse = player:GetMouse() |
03 |
04 | --functions |
05 |
06 | local function playsound() |
07 | --plays the sound |
08 | sound = Instance.new( "Sound" ) |
09 | sound.Parent = player.Character |
10 | sound.SoundId = "rbxassetid://9815509707" |
11 | sound:Play() |
12 |
13 | end |
14 |
15 | local function stopsound() |