Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why Event:FireAllClients() doesn't work?

--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

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

game.ReplicatedStorage.Events.FAS:FireAllClients()

This discussion is preserved as it was. New answers, comments, and votes are closed.