Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why Event:FireAllClients() doesn't work?

Asked by
lolenko 17
2 years ago
--Server script
local MPS = game:GetService("MarketplaceService")
local rep = game:GetService("ReplicatedStorage")
MPS.PromptGamePassPurchaseFinished:Connect(function(plr,ido,purchased)
    if purchased and ido == 19415887 then
        rep.Events.FAS:FireAllClients()
    end
end)
--local script 
game.ReplicatedStorage.Events.FAS.OnClientEvent:Connect(function()
    print("d")
    local char = workspace["DRIP ARMOR"]
    local hum =char:FindFirstChild("Humanoid")
    print("d")
    local camera = workspace.CurrentCamera
    camera.CameraType = Enum.CameraType.Scriptable
    print("d")
    camera.CFrame = workspace.CameraPos.CFrame
end)

Script is working, but event doesn't work

1 answer

Log in to vote
0
Answered by 2 years ago

try this, Referencing it directly is probably a possible way to solve it

game.ReplicatedStorage.Events.FAS:FireAllClients()
Ad

Answer this question