I wanted to Play a sound/song on a Part, But Nothing happened, There wasn't anything in output either! Here is my code:
s=Instance.new("Sound")
player=game.Players.LocalPlayer
health=player.Character.Humanoid
while true do
if health.Health==100 then
s:Play()
s.Parent=script.Parent--The Parent is a part.
s.SoundId="rbxassetid://144260719"--asset
s.Volume=1
s.Looped=true
elseif health.Health==0 then--To Stop the glitching.
s:stop()--stops when Player is dead.
end
end--end
Please Respect that I am a Scripter in need for knowledge

3 comments
I thanks I forgot!
No problem!
Ugh! I'm failing to remember these stuff. Thx for reminding, Time to fail on my spelling Test :P