FireClient is not working

Hi, i’m new here and I have strange problem. I have local script placed in StarterGui and Script placed in ServerScript service

Second one is pretty simple (i mean his most important part):

wait(20)
local players = game.Players:GetChildren()
local player = players[math.random(1,#players)]
game.ReplicatedStorage.RemoteEvents.ClientEvents.ScreenAfterDeath:FireClient(player,false,5,5,5,5)

Local script look like this:

local player = game.Players.LocalPlayer
local frame = player.PlayerGui.UI.AfterTheGame.Main.Effects.BotFrame.Profile
print("here0")
game.ReplicatedStorage.RemoteEvents.ClientEvents.ScreenAfterDeath.OnClientEvent:Connect(function(role,coins,exp,timeOrKills,lpGained)
	print("here1")
	if role == true then
		frame.MiddleFrame.TimeSurvived.Visible = false
		frame.MiddleFrame.PlayersFound.Visible = true
		frame.MiddleFrame.PlayersFound.Score.Text = timeOrKills
	else
		frame.MiddleFrame.PlayersFound.Visible = false
		frame.MiddleFrame.TimeSurvived.Visible = true
		frame.MiddleFrame.TimeSurvived.Score.Text = timeOrKills
	end

	local level = math.floor(player.stats.Experience.Value/100)
	frame.Left.Level.TextLabel.Text = "LVL: "..level

	frame.MiddleFrame.Score.Text = coins
	frame.MiddleFrame.ExpGained.Score.Text = exp
	frame.MiddleFrame.LpGained.Score.Text = lpGained

	local rank = math.floor(player.stats.Rank.Value/100)
	frame.RankFrame.Rank.TextLabel.Text = rank
	local progress = player.stats.Rank.Value%100
	frame.RankFrame.Progress.TextLabel.Text = "LP to next rank: "..progress.."/100"
	frame.RankFrame.Progress.ProgressBar.Size.X = {progress/100,0}
	player.PlayerGui.UI.AfterTheGame.Visible = true
	print("here2")
end)

I am reciving only “here0” message, no errors are showing :confused:
Can anyone help mne, please?

Could you try printing all of the parameters after the OnClientEvent and OnServerEvent functions are called to see if your parameters are right and let me know what that returns?

Okay now i found that script is not event printing “here0”, what is was doing before.
It doesnt print when I turn local test with 2 players, it only works when i just use “play” function in studio
I think there is a problem, do you know how to solve this?
Thanks for effort sir!

Can you show me your script where you got it to print the parameters?

I don’t think I understood you. You mean you want me to print parameters which I pass to event or which i recieve from event?

Which you receive from the event.

Okay so I made fast RemoteEvent used to print arguments passed to is and that is what I got:

17:15:30.845 false - Server - PrintEventScript:2
17:15:30.845 5 (x4) - Server - PrintEventScript:2

(here is new, a bit changed code)

local player = game.Players.LocalPlayer
local frame = player.PlayerGui.UI.AfterTheGame.Main.Effects.BotFrame.Profile
print("here0")
game.ReplicatedStorage.RemoteEvents.ClientEvents.ScreenAfterDeath.OnClientEvent:Connect(function(role,coins,exp,timeOrKills,lpGained)
	game.ReplicatedStorage.RemoteEvents.Print:FireServer(role)
	game.ReplicatedStorage.RemoteEvents.Print:FireServer(coins)
	game.ReplicatedStorage.RemoteEvents.Print:FireServer(exp)
	game.ReplicatedStorage.RemoteEvents.Print:FireServer(timeOrKills)
	game.ReplicatedStorage.RemoteEvents.Print:FireServer(lpGained)
	print("here1")
	if role == true then
		frame.MiddleFrame.TimeSurvived.Visible = false
		frame.MiddleFrame.PlayersFound.Visible = true
		frame.MiddleFrame.PlayersFound.Score.Text = timeOrKills
	else
		frame.MiddleFrame.PlayersFound.Visible = false
		frame.MiddleFrame.TimeSurvived.Visible = true
		frame.MiddleFrame.TimeSurvived.Score.Text = timeOrKills
	end

	local level = math.floor(player.stats.Experience.Value/100)
	frame.Left.Level.TextLabel.Text = "LVL: "..level

	frame.MiddleFrame.Score.Text = coins
	frame.MiddleFrame.ExpGained.Score.Text = exp
	frame.MiddleFrame.LpGained.Score.Text = lpGained

	local rank = math.floor(player.stats.Rank.Value/100)
	frame.RankFrame.Rank.TextLabel.Text = rank
	local progress = player.stats.Rank.Value%100
	frame.RankFrame.Progress.TextLabel.Text = "LP to next rank: "..progress.."/100"
	frame.RankFrame.Progress.ProgressBar.Size.X = {progress/100,0}
	player.PlayerGui.UI.AfterTheGame.Visible = true
	print("here2")
end)

I found out the solution, problem was here

frame.RankFrame.Progress.ProgressBar.Size.X = {progress/100,0}

I needed to use UDim2