Remote event wont work

no idea why, but my ReturnCamEvent refuses to work.

code:

local Camera = game.Workspace.Camera
local CutsceneCamEvent = game.ReplicatedStorage.Events.CutsceneCamEvent
local ReturnCamEvent = game.ReplicatedStorage.Events.ReturnCamEvent

local TweenService = game:GetService("TweenService")
local Info = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, false, 0)

-- Tweens Camera

CutsceneCamEvent.OnClientEvent:Connect(function(CamCFrame)

	Camera.CameraType = Enum.CameraType.Scriptable

	TweenService:Create(Camera, Info, {CFrame = CamCFrame}):Play()
end)

ReturnCamEvent.OnClientEvent:Connect(function()
	Camera.CameraType = Enum.CameraType.Custom
end)

in the server side, all im doing is ReturnCamEvent:FireAllClients()
and yes, i defined it. i checked if the remote event was spelled correctly and put in the right place, it was. no errors or warnings in the output.

1 Like

Have you tried to debug to see if your code is even running the FireAllClients() function?

Try putting a print inside of the receiving function and one before the firing function

1 Like