-- local script game.ReplicatedStorage.PagerSoundEvent.OnClientEvent:connect(function() if game.Players.LocalPlayer.Backpack:FindFirstChild("Pager") then game.Players.LocalPlayer.PagerSound:Play() wait(7) game.Players.LocalPlayer.PagerSound:Stop() end end)
so this is in StarterPlayerScripts
-- normalscript in workspace local player = game.Players.LocalPlayer if script.Parent.Sound.Value == true then game.ReplicatedStorage.PagerSoundEvent:FireServer() wait(1) script.Parent.Sound.Value = false end
This is in workspace but if i turn the sound value on then it don't react without any errors. I used 1 breakpoint at script 2 line 6 but it didn't work? Someone that could help me?
Only ServerScripts run when in workspace.
this should work
-- local script game.ReplicatedStorage.PagerSoundEvent.OnClientEvent:connect(function() if game.Players.LocalPlayer.Backpack:FindFirstChild("Pager") then game.Players.LocalPlayer.PagerSound:Play() wait(7) game.Players.LocalPlayer.PagerSound:Stop() end end) -- normalscript in workspace local rep = game:GetService("ReplicatedStorage") if script.Parent.Sound.Value == true then rep:WaitForChild("PagerSoundEvent"):FireClient() wait(1) script.Parent.Sound.Value = false end