Value sending to client as nil?

Server:

NotificationEvent:FireClient(Player, 15) -- 15 is the points to display

Client:

NotificationEvent.OnClientEvent:Connect(function(Player, XPAmount)
	CurrencyText.Text = "+" .. tostring(XPAmount) -- sending as nil
	
	MainFrame.Visible = true
	
	task.wait(2)
	
	MainFrame.Visible = false
end)

Remove the player

NotificationEvent.OnClientEvent:Connect(function(XPAmount)
1 Like

The simplest things we never think about. Thanks for spotting that.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.