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

Remote Events Changed Functions?

Have The Remote Event Functions (OnClientEvent,FireServer,etc...) changed from those or am i forgetting something? i have a local and server script but it wont recognize FireServer or OnServerEvent.

LocalScript

game.ReplicatedStorage.Events.Remove:FireServer()

ServerScript

game.ReplicatedStorage.Events.Remove.OnServerEvent:Connect(function()
	print("Help")
end)

2 comments

2

They definitely haven't changed. Maybe try posting the parts of the code that aren't working so we can help.

0

Are you using a remote EVENT or remote FUNCTION? they are two different things. Also, where is the localscript located

1 answer

Do you even create/use something to fire local script? If not then you should create/use something to fire server in the first place (You can't fire server without anything to be used to fire) .

Great use of RemoteEvent within the local script which is a GUI button to fire server or you can ignore code entirely and put the LocalScript in someplace that can be used but not created (StarterGui, StarterPlayerScript but not Workspace).

LocalScript

script.Parent.MouseButton1Click:Connect(function()
	game.ReplicatedStorage.Events.Remove:FireServer()
end)

Script

game.ReplicatedStorage.Events.Remove.OnServerEvent:Connect(function()
	print("Help")
end)

If this answer help then please accept the answer!

Edit: No, The RemoteEvent function is not changed at all due to Roblox now updating with backward compatibility (Update without breaking older games).

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