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
local player = game:GetService("Players").LocalPlayer local mouse = player:GetMouse() --functions local function playsound() --plays the sound sound = Instance.new("Sound") sound.Parent = player.Character sound.SoundId = "rbxassetid://9815509707" sound:Play() end local function stopsound() --stops the sound sound:Stop() sound:Destroy() end --input for playing the sound mouse.Button1Down:Connect(playsound) --input for stopping the sound mouse.Button1Up:Connect(stopsound)