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
3 years ago
01--Server script
02local MPS = game:GetService("MarketplaceService")
03local rep = game:GetService("ReplicatedStorage")
04MPS.PromptGamePassPurchaseFinished:Connect(function(plr,ido,purchased)
05    if purchased and ido == 19415887 then
06        rep.Events.FAS:FireAllClients()
07    end
08end)
09--local script
10game.ReplicatedStorage.Events.FAS.OnClientEvent:Connect(function()
11    print("d")
12    local char = workspace["DRIP ARMOR"]
13    local hum =char:FindFirstChild("Humanoid")
14    print("d")
15    local camera = workspace.CurrentCamera
16    camera.CameraType = Enum.CameraType.Scriptable
17    print("d")
18    camera.CFrame = workspace.CameraPos.CFrame
19end)

Script is working, but event doesn't work

1 answer

Log in to vote
0
Answered by 3 years ago

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

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

Answer this question