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

Problem with remote event?

This is not working and not giving any output.

In the server script (The part of the remote event)

function ClearCamera()
local event = v.Backpack.ClearCamera
wait(1)
event:FireClient(ClearCamera)
end		

In the Backpack's RemoteEvent named ClearCamera's Local Script:

local event = script.Parent:WaitForChild("ClearCamera")

event.OnClientEvent:connect(function()
	game.Workspace.CurrentCamera:ClearAllChildren()
	print("EventHappened")
end)

2 comments

0

I don't think your giving us the whole script? Is "ClearCamera()" being fired?

0

Oh no you're right the function ClearCamera() is unneccesary I think but at line 4 it is saying 'Argument 1 missing or nil' now?

1 answer

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