I'd like to make this script run only for the local player since I don't want everyone else to hear the sound that will be played when the "Part" is removed. The thing is when I put the code in Local Script it doesn't work but when it's in Normal Script in "ServerScriptStorage" it works perfectly, please help!
The Code:
local players = game:GetService("Players") players.PlayerAdded:Connect(function(player) for i, v in pairs(workspace.Model:GetDescendants()) do if v:IsA("Part") or v:IsA("part") then v.Sound.PlayOnRemove = true end end end)
