FireServer won't fire a boolean value

-- Local Script
local UpdateText = ReplicatedStorage:WaitForChild("UpdateText")
local canUpdate = false

UpdateText:FireServer(player, canUpdate)

UpdateText.OnClientEvent:Connect(function(canUpdateReceived)
print("Debug: player =", player, ", canUpdate =", canUpdate)
-- Server Script
UpdateText.OnServerEvent:Connect(function(player, canUpdate)
	if something something == true then
		UpdateText:FireClient(player, canUpdate)
	end
print("Debug: player =", player, ", canUpdate =", canUpdate)

However, instead of sending the bool value, it keeps sending the player AND the player again as canUpdate.

1 Like

You don’t need to manually fire the player object when you do :FireServer()

1 Like

Oh, right. LocalScripts should already send the player as they are LocalScripts.

1 Like

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