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

Argument 1 missing or nil? Firing events connected threw three different scripts?

First Script

Launching an event threw a normal script, - :FireClient()

Second Then a Local script receives it and launches a different event, - OnClientEvent + FireServer()

Third Finally the main script receives it and makes the power box able to work. - OnServerEvent

The "First" script is having trouble with Argument 1 Missing or nil?

script.Parent.Touched:Connect(function()
	game.ReplicatedStorage.RemoteEvent:FireClient()
	print("Event Fired")
end)

--for a story game--

1 answer

✓ Accepted answer

when you call FireClient, the first argument has to be a player, because if it isn't, then how will the game know which client you want to fire it to

you might have meant to use FireAllClients (which doesn't need a player argument) or FireServer instead

1 comment

0

ok

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