After sending a value through a RemoveEvent, the value shows up as nil.
Client:
script.Parent.MouseButton1Click:Connect(function(player)
Tile = script.Parent.Parent.TextBox.Text
game:GetService("ReplicatedStorage").GameEvents.TileChosen:FireServer(player, Tile)
end)
Server:
game.ReplicatedStorage.GameEvents.TileChosen.OnServerEvent:Connect(function(player, Tile)
print(Tile)
end)
In the output in says “nil” even though I entered a number into the TextBox. I also tried setting the number beforehand in the script so that it isn’t nil before you enter a number, but that changed nothing.