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

[solved] remote event not firing? (server to client)

Server code:

game.ReplicatedStorage.asdarE3d:FireAllClients()

Client code:

game.ReplicatedStorage.asdarE3d.OnClientEvent:Connect(function()
	print(3)
	local clone = script.Parent.Parent.Parent:Clone()
	clone.Parent = game.Players.LocalPlayer.PlayerGui
	wait(5)
	clone:Destroy()
end)

Why is it not firing? No errors.

1 answer

Alright, so FireAllClients is firing everything within that remote aka, when you have a chat make system message you fire it to everyone, that's what FireAllClients does, if you want it for one person do FireClient(), I recommend you don't use OnClientEvent unless secured because anything on the client is unsafe, but since we're accessing PlayerGui their is not much you can do. Just be safe!

game.ReplicatedStorage.asdarE3d:FireClients()
print("Fired!")
end)
game.ReplicatedStorage.asdarE3d.OnClientEvent:Connect(function()
	print(3)
	local clone = script.Parent.Parent.Parent:Clone()
	clone.Parent = gmae.Players.LocalPlayer.PlayerGui
	wait(5)
	clone:Destroy()
end)

if that does not work try printing stuff on the client and seeing if you can change your remote because it has a number in it. `

4 comments

0

A mod will have to fix this, the code is a bit messed up lol

0

Never mind.

0

doesn't work any different, still nothing happens

0

I don't think you can have a number in a remote.

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