Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Remote Events Changed Functions?

Asked by 4 years ago
Edited 4 years ago

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
They definitely haven't changed. Maybe try posting the parts of the code that aren't working so we can help. zone_cboat 52 — 4y
0
Are you using a remote EVENT or remote FUNCTION? they are two different things. Also, where is the localscript located thatwalmartman 404 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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).

Ad

Answer this question