You can only fire a remote with the FireServer from the client. When firing the server, you need a OnServerEvent event connected to a function in the server for the event to be triggered.
Example:
Local Script:
local RemoteEvent = game.ReplicatedStorage.RemoteEvent
RemoteEvent:FireServer()
Server Script:
local RemoteEvent = Instance.new("RemoteEvent", game:GetService("ReplicatedStorage"))
RemoteEvent.OnServerEvent:Connect(function(player, args)
print(player.Name .. "has fired the remote event) -- player is a default parameter that returns which player fired the remote.
end)
1 comment
Dosent Work