player = game:GetService("Players").LocalPlayer
game.ReplicatedStorage.Mine:FireServer(target, player)

Above fires it

Below cannot even print players name

Remote = game.ReplicatedStorage.Mine
local n = 0
local s = nil

Remote.OnServerEvent:Connect(function(playerWhoFired, player, target)
	print("Fired")
	print(player.Name)
end)

I will not show full code to prevent copying*

Okay that is the problem, how can I fix this.

It prints nothing at 'print(player.Name)'!

3 comments

1

Try to switch player and target in the second script

0

Try adding a wait after line 5 and line 6.

0

The player is automatically passed as the first argument with FireServer