Whenever I’m trying to send a client event I can send it but the client wont ever receive it, can you help?
if message == "!pdon" then
--pd on
print("Pd on")
game.ServerScriptService.PD.Value = true
workspace.PDSound:Play()
game.ReplicatedStorage.PdOn:FireAllClients()
print("b")
end
if message == "!pdoff" then
--pd off
print("Pd off")
game.ServerScriptService.PD.Value = false
workspace.PDSound:Stop()
game.ReplicatedStorage.PdOff:FireAllClients()
print("b")
end
In this script “b” will print but when it gets to the client
local pd = game.ServerScriptService.PD
local Pdon = ReplicatedStorage.PdOn
local Pdoff = ReplicatedStorage.PdOff
Pdon.OnClientEvent:Connect(function()
print("a")
playerGui.InPD.Enabled = true
end)
Pdoff.OnClientEvent:Connect(function()
print("a")
playerGui.InPD.Enabled = false
end)
“a” will not print