game.Workspace.tp2.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
game.Workspace.Sound3.isPlaying = false
end
end)
I have tried everything to troubleshoot and now it just says "cant set value" Im super confused.
game.Workspace.tp2.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
game.Workspace.Sound3.isPlaying = false
end
end)
I have tried everything to troubleshoot and now it just says "cant set value" Im super confused.
There's another way you can stop a sound, Sound:Stop().
https://developer.roblox.com/en-us/api-reference/function/Sound/Stop
game.Workspace.tp2.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
game.Workspace.Sound3:Stop()
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Sound:Stop(); IsPlaying is capitalized, and shouldn't be used to stop a sound.